opskeleton 0.9.9 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4527e12e7195227b3a1e6196be5bcc73fd1bd14
4
- data.tar.gz: 0b80916fb0d4088c32ec46985781d8caadb29dcf
3
+ metadata.gz: 100c5f2c4fd500b55cfbc38f5bc62c6e6b0e1e2a
4
+ data.tar.gz: 8ca991fbefa5ce6b90165257280c46b9dc3d42f6
5
5
  SHA512:
6
- metadata.gz: 384af8c4b51c63cca1d3437c1a3004838727ee211b66bbecd58a3d7c4570f6d35422de8b1988a842aa0fdbe732aacd5ef6bc6a8438200a6565b777d22cab5416
7
- data.tar.gz: f296b30e181976539c91e59f4c86de5c11eaf6347faa97d6199a2dfda8bf18070ba7636c2491da5e9b2e3e9e456b57940cd88f64e1e10abe6c055a75c9f527bc
6
+ metadata.gz: 022a2837f813344b86ee50e5f7b526d0a070b7b73778ce6965f7564c053eff9a073a91544099d7154d8572061209338f56e547ff3601ca59b5b9f0d33b813a2c
7
+ data.tar.gz: 76b9bad8a04efd9bebe2d6d471c48ceebea39945c1c75bb1f9decb3da64a4fa778d5fbef7a6643abb047d554935543eb82fb9b6b644b595c826bdbd8fc342b5e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opskeleton (0.9.9)
4
+ opskeleton (0.10.1)
5
5
  aws-sdk (~> 2)
6
6
  bintray_deploy
7
7
  git
@@ -12,39 +12,39 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- activemodel (4.2.3)
16
- activesupport (= 4.2.3)
17
- builder (~> 3.1)
18
- activesupport (4.2.3)
19
- i18n (~> 0.7)
20
- json (~> 1.7, >= 1.7.7)
21
- minitest (~> 5.1)
22
- thread_safe (~> 0.3, >= 0.3.4)
23
- tzinfo (~> 1.1)
24
- asciidoctor (1.5.5)
25
- aws-sdk (2.7.3)
26
- aws-sdk-resources (= 2.7.3)
27
- aws-sdk-core (2.7.3)
15
+ asciidoctor (1.5.6.1)
16
+ aws-sdk (2.10.82)
17
+ aws-sdk-resources (= 2.10.82)
18
+ aws-sdk-core (2.10.82)
28
19
  aws-sigv4 (~> 1.0)
29
20
  jmespath (~> 1.0)
30
- aws-sdk-resources (2.7.3)
31
- aws-sdk-core (= 2.7.3)
32
- aws-sigv4 (1.0.0)
21
+ aws-sdk-resources (2.10.82)
22
+ aws-sdk-core (= 2.10.82)
23
+ aws-sigv4 (1.0.2)
33
24
  bintray_deploy (0.0.4)
34
25
  configuration
35
26
  rest-client
36
27
  thor
37
- builder (3.2.3)
38
- coderay (1.1.1)
28
+ coderay (1.1.2)
39
29
  configuration (1.3.4)
40
30
  diff-lcs (1.3)
41
- domain_name (0.5.20161129)
31
+ domain_name (0.5.20170404)
42
32
  unf (>= 0.0.5, < 1.0.0)
43
- facter (2.4.6)
33
+ facter (2.5.1)
44
34
  faraday (0.9.2)
45
35
  multipart-post (>= 1.2, < 3)
46
- ffi (1.9.17)
36
+ faraday_middleware (0.10.1)
37
+ faraday (>= 0.7.4, < 1.0)
38
+ fast_gettext (1.1.0)
39
+ ffi (1.9.18)
47
40
  formatador (0.2.5)
41
+ gettext (3.2.4)
42
+ locale (>= 2.0.5)
43
+ text (>= 1.3.0)
44
+ gettext-setup (0.28)
45
+ fast_gettext (~> 1.1.0)
46
+ gettext (>= 3.0.2)
47
+ locale
48
48
  git (1.3.0)
49
49
  git_clone_url (1.0.1)
50
50
  uri-ssh_git (>= 1.0, < 2.0)
@@ -58,111 +58,105 @@ GEM
58
58
  shellany (~> 0.0)
59
59
  thor (>= 0.18.1)
60
60
  guard-compat (1.2.1)
61
- guard-minitest (2.4.4)
61
+ guard-minitest (2.4.6)
62
62
  guard-compat (~> 1.2)
63
63
  minitest (>= 3.0)
64
64
  guard-shell (0.7.1)
65
65
  guard (>= 2.0.0)
66
66
  guard-compat (~> 1.0)
67
- her (0.6.8)
68
- activemodel (>= 3.0.0)
69
- activesupport (>= 3.0.0)
70
- faraday (~> 0.8)
71
- multi_json (~> 1.7)
72
- hiera (1.3.4)
73
- json_pure
67
+ hiera (3.4.2)
74
68
  http-cookie (1.0.3)
75
69
  domain_name (~> 0.5)
76
- i18n (0.7.0)
77
70
  jmespath (1.3.1)
78
- json (1.8.3)
79
- json_pure (2.0.3)
71
+ json_pure (1.8.6)
80
72
  librarian-puppet (2.1.0)
81
73
  librarianp (>= 0.5.1)
82
74
  puppet_forge
83
75
  rsync
84
- librarianp (0.6.3)
76
+ librarianp (0.6.4)
85
77
  thor (~> 0.15)
86
78
  listen (3.0.8)
87
79
  rb-fsevent (~> 0.9, >= 0.9.4)
88
80
  rb-inotify (~> 0.9, >= 0.9.7)
89
- lumberjack (1.0.11)
81
+ locale (2.1.2)
82
+ lumberjack (1.0.12)
90
83
  metaclass (0.0.4)
91
- method_source (0.8.2)
84
+ method_source (0.9.0)
92
85
  mime-types (3.1)
93
86
  mime-types-data (~> 3.2015)
94
87
  mime-types-data (3.2016.0521)
95
- minitest (5.10.1)
96
- mocha (1.1.0)
88
+ minitar (0.6.1)
89
+ minitest (5.10.3)
90
+ mocha (1.3.0)
97
91
  metaclass (~> 0.0.1)
98
- multi_json (1.12.1)
92
+ multi_json (1.12.2)
99
93
  multipart-post (2.0.0)
100
94
  nenv (0.3.0)
101
95
  net-scp (1.2.1)
102
96
  net-ssh (>= 2.6.5)
103
- net-ssh (4.0.1)
97
+ net-ssh (4.2.0)
104
98
  netrc (0.11.0)
105
99
  notiffany (0.1.1)
106
100
  nenv (~> 0.1)
107
101
  shellany (~> 0.0)
108
- posix-spawn (0.3.11)
109
- pry (0.10.4)
102
+ pry (0.11.2)
110
103
  coderay (~> 1.1.0)
111
- method_source (~> 0.8.1)
112
- slop (~> 3.4)
113
- puppet (3.8.7)
114
- facter (> 1.6, < 3)
115
- hiera (~> 1.0)
116
- json_pure
117
- puppet-lint (2.1.0)
118
- puppet-syntax (2.2.0)
104
+ method_source (~> 0.9.0)
105
+ puppet (4.10.8)
106
+ facter (> 2.0, < 4)
107
+ gettext-setup (>= 0.10, < 1)
108
+ hiera (>= 2.0, < 4)
109
+ json_pure (~> 1.8)
110
+ locale (~> 2.1)
111
+ puppet-lint (2.3.3)
112
+ puppet-syntax (2.4.1)
119
113
  rake
120
- puppet_forge (1.0.5)
121
- her (~> 0.6.8)
122
- puppetlabs_spec_helper (0.10.3)
123
- mocha
124
- puppet-lint
125
- puppet-syntax
126
- rake
127
- rspec-puppet
128
- pygments.rb (0.6.3)
129
- posix-spawn (~> 0.3.6)
130
- yajl-ruby (~> 1.2.0)
131
- rake (12.0.0)
132
- rb-fsevent (0.9.8)
133
- rb-inotify (0.9.8)
134
- ffi (>= 0.5.0)
135
- rest-client (2.0.0)
114
+ puppet_forge (2.2.8)
115
+ faraday (~> 0.9.0)
116
+ faraday_middleware (>= 0.9.0, < 0.11.0)
117
+ gettext-setup (~> 0.11)
118
+ minitar
119
+ semantic_puppet (~> 1.0)
120
+ puppetlabs_spec_helper (2.4.0)
121
+ mocha (~> 1.0)
122
+ puppet-lint (~> 2.0)
123
+ puppet-syntax (~> 2.0)
124
+ rspec-puppet (~> 2.0)
125
+ pygments.rb (1.2.0)
126
+ multi_json (>= 1.0.0)
127
+ rake (12.2.1)
128
+ rb-fsevent (0.10.2)
129
+ rb-inotify (0.9.10)
130
+ ffi (>= 0.5.0, < 2)
131
+ rest-client (2.0.2)
136
132
  http-cookie (>= 1.0.2, < 2.0)
137
133
  mime-types (>= 1.16, < 4.0)
138
134
  netrc (~> 0.8)
139
- rspec (3.5.0)
140
- rspec-core (~> 3.5.0)
141
- rspec-expectations (~> 3.5.0)
142
- rspec-mocks (~> 3.5.0)
143
- rspec-core (3.5.4)
144
- rspec-support (~> 3.5.0)
145
- rspec-expectations (3.5.0)
135
+ rspec (3.7.0)
136
+ rspec-core (~> 3.7.0)
137
+ rspec-expectations (~> 3.7.0)
138
+ rspec-mocks (~> 3.7.0)
139
+ rspec-core (3.7.0)
140
+ rspec-support (~> 3.7.0)
141
+ rspec-expectations (3.7.0)
146
142
  diff-lcs (>= 1.2.0, < 2.0)
147
- rspec-support (~> 3.5.0)
148
- rspec-mocks (3.5.0)
143
+ rspec-support (~> 3.7.0)
144
+ rspec-mocks (3.7.0)
149
145
  diff-lcs (>= 1.2.0, < 2.0)
150
- rspec-support (~> 3.5.0)
151
- rspec-puppet (2.5.0)
146
+ rspec-support (~> 3.7.0)
147
+ rspec-puppet (2.6.9)
152
148
  rspec
153
- rspec-support (3.5.0)
149
+ rspec-support (3.7.0)
154
150
  rsync (1.0.9)
151
+ semantic_puppet (1.0.1)
152
+ gettext-setup (>= 0.3)
155
153
  shellany (0.0.1)
156
- slop (3.6.0)
157
- thor (0.19.4)
158
- thread_safe (0.3.5)
159
- tzinfo (1.2.2)
160
- thread_safe (~> 0.1)
154
+ text (1.3.1)
155
+ thor (0.20.0)
161
156
  unf (0.1.4)
162
157
  unf_ext
163
- unf_ext (0.0.7.2)
158
+ unf_ext (0.0.7.4)
164
159
  uri-ssh_git (1.0.0)
165
- yajl-ruby (1.2.1)
166
160
 
167
161
  PLATFORMS
168
162
  ruby
@@ -174,7 +168,7 @@ DEPENDENCIES
174
168
  guard-shell
175
169
  librarian-puppet (= 2.1.0)
176
170
  opskeleton!
177
- puppet (= 3.8.7)
171
+ puppet (= 4.10.8)
178
172
  puppetlabs_spec_helper (>= 0.1.0)
179
173
  pygments.rb
180
174
  rspec-puppet
@@ -1,6 +1,6 @@
1
1
  = Opskeleton
2
2
  Ronen Narkis, <narkisr@gmail.com>
3
- v0.9.2
3
+ v0.9.9
4
4
  :toc: left
5
5
  :!numbered:
6
6
  :idseparator: -
@@ -81,7 +81,7 @@ $ make virtualbox/ubuntu1604
81
81
  A useful convention for Box names:
82
82
 
83
83
  ```bash
84
- ubuntu-{ubuntuversion}_puppet-3.6.1 ([os]-[version]_[provisioner]-[version])
84
+ ubuntu-16.04_puppet-3.8.7 ([os]-[version]_[provisioner]-[version])
85
85
  ```
86
86
 
87
87
  == Puppet
@@ -6,7 +6,7 @@ module Opsk
6
6
  argument :box, :type => :string, :desc => 'Vagrant box type'
7
7
  class_option :box_url, :type=> :string, :desc => 'vagrant box url'
8
8
  class_option :os_type, :type=> :string, :desc => 'Operating system type (bsd/linux)'
9
- class_option :provider, :type=> :string, :desc => 'Vagrant provider be it virtualbox, openstack etc..', :default => 'virtualbox'
9
+ class_option :provider, :type=> :string, :desc => 'Vagrant provider be it virtualbox, openstack etc..', :default => 'libvirt'
10
10
  class_option :bench_enable, :type=> :boolean, :desc => 'Control if to enable benchmarking support'
11
11
 
12
12
  desc 'Generate a Vagrant, Puppet librarian and fpm project'
@@ -47,9 +47,9 @@ module Opsk
47
47
  empty_directory("#{path}/static-modules/")
48
48
  empty_directory("#{path}/manifests/")
49
49
  template('templates/puppetfile.erb', "#{path}/Puppetfile")
50
- template('templates/puppet/default.erb', "#{path}/manifests/default.pp")
50
+ copy_file('templates/puppet/default.pp', "#{path}/manifests/default.pp")
51
51
  copy_file('templates/puppet/run.sh', "#{path}/run.sh")
52
- copy_file('templates/puppet/boot.sh', "#{path}/boot.sh")
52
+ template('templates/puppet/boot.erb', "#{path}/boot.sh")
53
53
  chmod("#{path}/run.sh", 0755)
54
54
  chmod("#{path}/boot.sh", 0755)
55
55
  end
@@ -1,3 +1,3 @@
1
1
  module Opskeleton
2
- VERSION = '0.9.9'
2
+ VERSION = '0.10.1'
3
3
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.add_dependency('net-scp')
18
18
  gem.add_dependency('git')
19
19
  gem.add_dependency('git_clone_url', '~> 1.0')
20
- gem.add_development_dependency('puppet','=3.8.7')
20
+ gem.add_development_dependency('puppet','=4.10.8')
21
21
  gem.add_development_dependency('rspec-puppet')
22
22
  gem.add_development_dependency('librarian-puppet', '= 2.1.0')
23
23
  gem.add_development_dependency('puppetlabs_spec_helper', '>= 0.1.0')
@@ -1,10 +1,13 @@
1
1
  ---
2
- :backends:
3
- - yaml
4
- - module_data
5
- :logger: console
6
- :hierarchy:
7
- - '%{::virtual}'
8
- - common
9
- :yaml:
10
- :datadir: hieradata
2
+ version: 5
3
+
4
+ defaults:
5
+ datadir: /vagrant/hieradata-dev
6
+ data_hash: yaml_data
7
+ hierarchy:
8
+ - name : 'virtual type'
9
+ path: "%{::virtual}.yaml"
10
+ - name : 'by hostname'
11
+ path: "%{::hostname}.yaml"
12
+ - name: 'common data'
13
+ path: 'common.yaml'
@@ -1,4 +1,4 @@
1
1
  gem install bundle
2
2
  bundle install
3
3
  bundle exec librarian-puppet install
4
- vagrant up
4
+ vagrant up <%=name%>
@@ -0,0 +1,3 @@
1
+ node default {
2
+
3
+ }
@@ -1,50 +1,36 @@
1
- # -*- mode: ruby -*-
2
- # vi: set ft=ruby :
3
- <%if(options['provider'].eql?('openstack')) -%>
4
- require 'vagrant-openstack-provider'
5
- <%end -%>
6
-
7
1
  Vagrant.configure("2") do |config|
8
2
 
9
3
  config.vm.define :<%=name%> do |node|
10
- <%if(options['provider'].eql?('virtualbox')) -%>
11
- bridge = ENV['VAGRANT_BRIDGE']
12
- bridge ||= 'eth0'
13
- <%end -%>
14
-
15
- env = ENV['PUPPET_ENV']
16
- env ||= 'dev'
4
+ device = ENV['VAGRANT_BRIDGE']|| 'eth0'
17
5
 
18
6
  <%if(options['box_url']) -%>
19
- <%="node.vm.box_url = '#{options['box_url']}'" -%>
7
+ <%="node.vm.box_url = '#{options['box_url']}'" -%>
20
8
  <%end -%>
21
9
  <%if(options['provider'].eql?('virtualbox')) -%>
22
- node.vm.box = '<%=box%>'
23
- node.vm.network :public_network, :bridge => bridge
10
+ node.vm.box = '<%=box%>'
11
+ node.vm.network :public_network, :bridge => device
24
12
  node.vm.hostname = '<%=name%>.local'
25
-
13
+
26
14
  node.vm.provider :virtualbox do |vb|
27
15
  vb.customize ['modifyvm', :id, '--memory', 2048, '--cpus', 2]
28
16
  end
29
- <%elsif(options['provider'].eql?('openstack')) -%>
30
- node.vm.box = 'openstack'
31
- node.ssh.username = 'ubuntu'
17
+ <%elsif(options['provider'].eql?('libvirt')) -%>
18
+ pool = ENV['VAGRANT_POOL']
32
19
 
33
- node.vm.provider :openstack do |os|
34
- os.openstack_auth_url = 'http://hostname/tokens'
35
- os.username = config.configuration.os_username
36
- os.password = config.configuration.os_password
37
- os.tenant_name = ''
38
- os.flavor = 'm1.small'
39
- os.image = ''
40
- os.floating_ip_pool = ''
20
+ config.vm.provider :libvirt do |domain, override|
21
+ override.vm.network :public_network, :bridge => device , :dev => device
22
+ domain.uri = 'qemu+unix:///system'
23
+ domain.memory = 2048
24
+ domain.cpus = 2
25
+ domain.storage_pool_name = pool if pool
26
+ override.vm.synced_folder './', '/vagrant', type: 'nfs', nfs_udp: false, nfs_version: 4
41
27
  end
42
28
  <%end -%>
43
29
 
44
30
  node.vm.provision :puppet do |puppet|
45
31
  puppet.manifests_path = 'manifests'
46
32
  puppet.manifest_file = 'default.pp'
47
- puppet.options = "--modulepath=/vagrant/modules:/vagrant/static-modules --hiera_config /vagrant/hiera_vagrant.yaml --environment=#{env}"
33
+ puppet.options = "--modulepath=/vagrant/modules:/vagrant/static-modules --hiera_config /vagrant/hiera_vagrant.yaml"
48
34
  end
49
35
  end
50
36
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opskeleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - narkisr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-28 00:00:00.000000000 Z
11
+ date: 2017-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 3.8.7
103
+ version: 4.10.8
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 3.8.7
110
+ version: 4.10.8
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec-puppet
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -284,8 +284,8 @@ files:
284
284
  - templates/parent/travis.erb
285
285
  - templates/puppet/Gemfile.erb
286
286
  - templates/puppet/Rakefile.erb
287
- - templates/puppet/boot.sh
288
- - templates/puppet/default.erb
287
+ - templates/puppet/boot.erb
288
+ - templates/puppet/default.pp
289
289
  - templates/puppet/docker/ubuntu_docker.erb
290
290
  - templates/puppet/opsk.yaml
291
291
  - templates/puppet/run.sh
@@ -1,3 +0,0 @@
1
- node '<%=name%>.local' {
2
-
3
- }