Permalink
Browse files

Merge pull request #5 from jfryman/public

Fixing Public Update
  • Loading branch information...
2 parents 93ee867 + 938d3ad commit 084993b38241f2f85018951b1f17b8eedda5e615 James Fryman committed Dec 4, 2012
Showing with 17 additions and 5 deletions.
  1. +1 −0 .gitignore
  2. +2 −2 README.md
  3. +3 −3 config/autogen_defaults.yml
  4. +11 −0 rake/stroller.rb
View
@@ -6,4 +6,5 @@ vendor/gems
*.iso
.vagrant
graph
+README
config/nodes.yml
View
@@ -21,8 +21,8 @@ manifests/cookbooks/bundles are, and then go and start developing! You
may alternatively clone this repository and setup your own configuration
for your environment.
-Edit the defaults set in `config/autogen_defaults.yml`, and you should
-be off to the races.
+Edit all of the values in `config/autogen_defaults.yml` that are
+labeled `FILL_ME_IN`
## Provisioners
### Puppet
@@ -2,7 +2,7 @@
# You should edit this.
default: &default
ip: 192.168.150.1
- orgname: github.com
+ orgname: FILL_ME_IN
vbox: debian-6.0.6-amd64
memory_size: 512
# But don't edit this unless you know what you're doing.
@@ -13,10 +13,10 @@ puppetmaster:
mounts:
puppet_manifests:
guest: /etc/puppet/manifests
- host: ~/github/puppet/manifests
+ host: FILL_ME_IN
puppet_modules:
guest: /etc/puppet/modules
- host: ~/github/puppet/modules
+ host: FILL_ME_IN
hitch_config:
guest: /etc/vagrant/hitch
host: ./config
View
@@ -0,0 +1,11 @@
+require 'yaml'
+
+nodes = YAML::load(File.open(NODES_FILE))
+
+namespace :stroller do
+ desc "Set the Orgname for Stroller"
+ task :orgname, :domain do |t, args|
+ nodes['default']['orgname'] = args[:domain] || 'vagrant.dev'
+ File.open(NODES_FILE, 'w') { |f| f.write(nodes.to_yaml) }
+ end
+end

0 comments on commit 084993b

Please sign in to comment.