Skip to content

Commit

Permalink
Merge pull request #5 from jfryman/public
Browse files Browse the repository at this point in the history
Fixing Public Update
  • Loading branch information
James Fryman committed Dec 4, 2012
2 parents 93ee867 + 938d3ad commit 084993b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ vendor/gems
*.iso
.vagrant
graph
README
config/nodes.yml
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions config/autogen_defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
11 changes: 11 additions & 0 deletions rake/stroller.rb
Original file line number Diff line number Diff line change
@@ -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.