sooty-puppet 0.0.4 → 0.0.5

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.
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ /.vagrant
data/Rakefile CHANGED
@@ -1,2 +1,10 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
+
4
+ # Allow basic testing via Vagrant
5
+ require_relative 'lib/sooty'
6
+
7
+ set :domain, 'vagrant@192.168.33.10'
8
+
9
+ set :puppet_manifest, 'test/manifest.pp'
10
+ set :puppet_options, '--verbose --debug'
@@ -0,0 +1,6 @@
1
+ Vagrant::Config.run do |config|
2
+ config.vm.box = "precise64"
3
+ config.vm.box_url = "http://files.vagrantup.com/precise64.box"
4
+
5
+ config.vm.network :hostonly, "192.168.33.10"
6
+ end
@@ -2,14 +2,16 @@ require 'rake/remote_task'
2
2
 
3
3
  namespace :sooty do
4
4
 
5
+ desc 'Install Puppet and its dependencies'
5
6
  remote_task :setup do
6
7
  run setup_puppet_repo_cmd
7
8
  run install_puppet_cmd
8
9
  end
9
10
 
11
+ desc 'Archive, transfer and apply Puppet manifests to host'
10
12
  remote_task :apply do
11
13
  sh create_puppet_archive_cmd
12
- rsync '/tmp/puppet.tar.gz', '/tmp'
14
+ rsync '/tmp/puppet.tar.gz', "#{domain}:/tmp"
13
15
  run puppet_apply_cmd
14
16
  end
15
17
 
@@ -63,6 +65,7 @@ namespace :sooty do
63
65
  puppet_cmd = 'sudo puppet apply '
64
66
  puppet_cmd += '--modulepath=/tmp/puppet/modules ' if defined? puppet_modules
65
67
  puppet_cmd += 'manifest.pp'
68
+ puppet_cmd += " #{puppet_options}" if defined? puppet_options
66
69
 
67
70
  cmds += [puppet_cmd]
68
71
 
@@ -1,3 +1,3 @@
1
1
  module Sooty
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -0,0 +1,3 @@
1
+ file { '/etc/motd':
2
+ content => 'Hello sooty',
3
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sooty-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
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: 2012-07-06 00:00:00.000000000 Z
12
+ date: 2012-08-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-remote_task
@@ -39,9 +39,11 @@ files:
39
39
  - LICENSE
40
40
  - README.md
41
41
  - Rakefile
42
+ - Vagrantfile
42
43
  - lib/sooty.rb
43
44
  - lib/sooty/version.rb
44
45
  - sooty.gemspec
46
+ - test/manifest.pp
45
47
  homepage: https://github.com/davidwinter/sooty
46
48
  licenses: []
47
49
  post_install_message:
@@ -66,4 +68,5 @@ rubygems_version: 1.8.23
66
68
  signing_key:
67
69
  specification_version: 3
68
70
  summary: Install Puppet via Rake and apply your manifests.
69
- test_files: []
71
+ test_files:
72
+ - test/manifest.pp