File tree 9 files changed +208
-43
lines changed
9 files changed +208
-43
lines changed Original file line number Diff line number Diff line change 1
1
.kitchen /
2
+ .bundle /
2
3
.kitchen.local.yml
Original file line number Diff line number Diff line change
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'test-kitchen'
4
+ gem 'kitchen-ansible'
5
+ gem 'kitchen-vagrant'
Original file line number Diff line number Diff line change
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ faraday (0.9.1 )
5
+ multipart-post (>= 1.2 , < 3 )
6
+ highline (1.7.7 )
7
+ kitchen-ansible (0.0.26 )
8
+ librarian-ansible
9
+ test-kitchen
10
+ kitchen-vagrant (0.19.0 )
11
+ test-kitchen (~> 1.4 )
12
+ librarian (0.1.2 )
13
+ highline
14
+ thor (~> 0.15 )
15
+ librarian-ansible (1.0.6 )
16
+ faraday
17
+ librarian (~> 0.1.0 )
18
+ mixlib-shellout (2.2.1 )
19
+ multipart-post (2.0.0 )
20
+ net-scp (1.2.1 )
21
+ net-ssh (>= 2.6.5 )
22
+ net-ssh (2.9.2 )
23
+ safe_yaml (1.0.4 )
24
+ test-kitchen (1.4.2 )
25
+ mixlib-shellout (>= 1.2 , < 3.0 )
26
+ net-scp (~> 1.1 )
27
+ net-ssh (~> 2.7 , < 2.10 )
28
+ safe_yaml (~> 1.0 )
29
+ thor (~> 0.18 )
30
+ thor (0.19.1 )
31
+
32
+ PLATFORMS
33
+ ruby
34
+
35
+ DEPENDENCIES
36
+ kitchen-ansible
37
+ kitchen-vagrant
38
+ test-kitchen
39
+
40
+ BUNDLED WITH
41
+ 1.10.5
Original file line number Diff line number Diff line change @@ -31,6 +31,15 @@ This role doesn't need any configuration apart from setting nix_users.
31
31
- role: ktosiek.nix
32
32
nix_users: user1,user2
33
33
34
+
35
+ Hacking
36
+ -------
37
+
38
+ This role is tested with test-kitchen.
39
+ There's a shell.nix that should provide you with kitchen, kitchen-ansible, and kitchen-vagrant just by running ` nix-shell ` .
40
+ To run the tests just run ` kitchen verify ` .
41
+
42
+
34
43
License
35
44
-------
36
45
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ #! nix-shell -i bash -p bundler bundix nix
3
+ set -xe
4
+
5
+ bundler package --path /tmp/vendor/bundle
6
+ bundix --target=nix/gemset.nix
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ {
2
+ "faraday" = {
3
+ version = "0.9.1" ;
4
+ source = {
5
+ type = "gem" ;
6
+ sha256 = "1h33znnfzxpscgpq28i9fcqijd61h61zgs3gabpdgqfa1043axsn" ;
7
+ } ;
8
+ dependencies = [
9
+ "multipart-post"
10
+ ] ;
11
+ } ;
12
+ "highline" = {
13
+ version = "1.7.7" ;
14
+ source = {
15
+ type = "gem" ;
16
+ sha256 = "1pcalavh9n35h5b3l6gdqj2rr4c8qv88wbwiwx1i9cfxiqgkmkaa" ;
17
+ } ;
18
+ } ;
19
+ "kitchen-ansible" = {
20
+ version = "0.0.26" ;
21
+ source = {
22
+ type = "gem" ;
23
+ sha256 = "1148p3i6yy5awc97vmkg9phy3j7vqgr47nc5mzg0ll95xslrcbn9" ;
24
+ } ;
25
+ dependencies = [
26
+ "librarian-ansible"
27
+ "test-kitchen"
28
+ ] ;
29
+ } ;
30
+ "kitchen-vagrant" = {
31
+ version = "0.19.0" ;
32
+ source = {
33
+ type = "gem" ;
34
+ sha256 = "0sydjihhvnr40vqnj7bg65zxf00crwvwdli1av03ghhggrp5scla" ;
35
+ } ;
36
+ dependencies = [
37
+ "test-kitchen"
38
+ ] ;
39
+ } ;
40
+ "librarian" = {
41
+ version = "0.1.2" ;
42
+ source = {
43
+ type = "gem" ;
44
+ sha256 = "0h339nclw0lhczimb736qj6grbkkq2mz660kkzc06nsxxhskh9kw" ;
45
+ } ;
46
+ dependencies = [
47
+ "highline"
48
+ "thor"
49
+ ] ;
50
+ } ;
51
+ "librarian-ansible" = {
52
+ version = "1.0.6" ;
53
+ source = {
54
+ type = "gem" ;
55
+ sha256 = "1dc6axylv7dz3px9hdgapk8hr57i3s5v68dljdvjy82a209gsq1k" ;
56
+ } ;
57
+ dependencies = [
58
+ "faraday"
59
+ "librarian"
60
+ ] ;
61
+ } ;
62
+ "mixlib-shellout" = {
63
+ version = "2.2.1" ;
64
+ source = {
65
+ type = "gem" ;
66
+ sha256 = "16bn29i3fz79bv9b2q5m0ihn3sb0r5m5zk82vvzkfm56fh427pgp" ;
67
+ } ;
68
+ } ;
69
+ "multipart-post" = {
70
+ version = "2.0.0" ;
71
+ source = {
72
+ type = "gem" ;
73
+ sha256 = "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x" ;
74
+ } ;
75
+ } ;
76
+ "net-scp" = {
77
+ version = "1.2.1" ;
78
+ source = {
79
+ type = "gem" ;
80
+ sha256 = "0b0jqrcsp4bbi4n4mzyf70cp2ysyp6x07j8k8cqgxnvb4i3a134j" ;
81
+ } ;
82
+ dependencies = [
83
+ "net-ssh"
84
+ ] ;
85
+ } ;
86
+ "net-ssh" = {
87
+ version = "2.9.2" ;
88
+ source = {
89
+ type = "gem" ;
90
+ sha256 = "1p0bj41zrmw5lhnxlm1pqb55zfz9y4p9fkrr9a79nrdmzrk1ph8r" ;
91
+ } ;
92
+ } ;
93
+ "safe_yaml" = {
94
+ version = "1.0.4" ;
95
+ source = {
96
+ type = "gem" ;
97
+ sha256 = "1hly915584hyi9q9vgd968x2nsi5yag9jyf5kq60lwzi5scr7094" ;
98
+ } ;
99
+ } ;
100
+ "test-kitchen" = {
101
+ version = "1.4.2" ;
102
+ source = {
103
+ type = "gem" ;
104
+ sha256 = "017fify4hnk9rn4i7165x80xamsp6n2rb85j31s9ggb57xjv7bvs" ;
105
+ } ;
106
+ dependencies = [
107
+ "mixlib-shellout"
108
+ "net-scp"
109
+ "net-ssh"
110
+ "safe_yaml"
111
+ "thor"
112
+ ] ;
113
+ } ;
114
+ "thor" = {
115
+ version = "0.19.1" ;
116
+ source = {
117
+ type = "gem" ;
118
+ sha256 = "08p5gx18yrbnwc6xc0mxvsfaxzgy2y9i78xq7ds0qmdm67q39y4z" ;
119
+ } ;
120
+ } ;
121
+ }
Original file line number Diff line number Diff line change
1
+ { lib , bundlerEnv , ruby } :
2
+
3
+ bundlerEnv {
4
+ name = "kitchen" ;
5
+
6
+ inherit ruby ;
7
+ gemfile = ../Gemfile ;
8
+ lockfile = ../Gemfile.lock ;
9
+ gemset = ./gemset.nix ;
10
+ }
Original file line number Diff line number Diff line change
1
+ with import <nixpkgs> { } ;
2
+
3
+ let
4
+ kitchen = callPackage ./nix/kitchen.nix { } ;
5
+ in
6
+ stdenv . mkDerivation {
7
+ name = "ansible-nix" ;
8
+
9
+ buildInputs = [
10
+ kitchen
11
+ vagrant
12
+ ] ;
13
+
14
+ src = null ;
15
+ }
You can’t perform that action at this time.
0 commit comments