opskeleton 0.1.2 → 0.1.3

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.
@@ -36,7 +36,7 @@ module Opsk
36
36
  empty_directory("#{path}/static-modules/")
37
37
  empty_directory("#{path}/manifests/")
38
38
  template('templates/puppetfile.erb', "#{path}/Puppetfile")
39
- template('templates/default.erb', "#{path}/manifests/default.pp")
39
+ template('templates/puppet/default.erb', "#{path}/manifests/default.pp")
40
40
  copy_file('templates/run.sh', "#{path}/run.sh")
41
41
  chmod("#{path}/run.sh", 0755)
42
42
  end
@@ -23,6 +23,7 @@ module Opsk
23
23
  template("templates/scripts/#{s}", "#{artifact}/scripts/#{s}")
24
24
  chmod("#{artifact}/scripts/#{s}", 0755)
25
25
  end
26
+ template('templates/puppet/site.erb', "#{artifact}/manifests/site.pp")
26
27
  end
27
28
 
28
29
  def create_pkg
@@ -1,3 +1,3 @@
1
1
  module Opskeleton
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
File without changes
File without changes
@@ -1,4 +1,4 @@
1
1
  #!/bin/sh
2
2
 
3
3
  export ip=`echo $SSH_CONNECTION | cut -d ' ' -f 1`
4
- wget -q -O - "http://$ip:8080/registry/profile/$1"
4
+ wget -q -O - "http://$ip:8080/registry/host/type/$1"
@@ -1,2 +1,2 @@
1
- puppet apply --modulepath=modules:static-modules manifests/default.pp\
1
+ puppet apply --modulepath=modules:static-modules manifests/site.pp\
2
2
  --node_terminus exec --external_nodes=`pwd`/scripts/lookup.sh --hiera_config hiera.yaml $@
data/test/package_test.rb CHANGED
@@ -26,8 +26,8 @@ class PackageTest < MiniTest::Unit::TestCase
26
26
  Opsk::Root.start ['package']
27
27
  end
28
28
  assert File.exists?('foo-sandbox/foo-sandbox-0.0.1/Puppetfile')
29
+ assert File.exists?('foo-sandbox/foo-sandbox-0.0.1/manifests/site.pp')
29
30
  assert File.exists?('foo-sandbox/foo-sandbox-0.0.1/scripts/run.sh')
30
-
31
31
  assert File.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1.tar.gz')
32
32
  end
33
33
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opskeleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-19 00:00:00.000000000 Z
12
+ date: 2013-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -53,11 +53,12 @@ files:
53
53
  - templates/README.erb
54
54
  - templates/Rakefile
55
55
  - templates/clean.yaml
56
- - templates/default.erb
57
56
  - templates/gemfile
58
57
  - templates/gitignore
59
58
  - templates/hiera.yaml
60
59
  - templates/opsk.yml
60
+ - templates/puppet/default.erb
61
+ - templates/puppet/site.erb
61
62
  - templates/puppetfile.erb
62
63
  - templates/run.sh
63
64
  - templates/rvmrc.erb