git clone git://git.sarava.org/puppet-bootstrap.git puppet
cd puppet && git tag -v
- make submodules # get all needed submodules
+ make submodules # add all needed puppet moduleas as git submodules
Using as a standalone provisioner
---------------------------------
cd your-project
git clone git://git.sarava.org/puppet-bootstrap.git puppet # use submodule or subtree as you please
- ln -s puppet/Vagrantfile . # or copy if you want to customize
- ( cd puppet && mr up ) # need the mr binary to download the submodules
+ ln -s puppet/Vagrantfile # or copy if you want to customize
+ ( cd puppet && make modules ) # need the mr binary to download the submodules
vagrant up web # with no arguments, all defined VMs are started
====
* Make "config" target, refactoring config.pp and default_conf.pp.
+* Make "subtrees" target, including all puppet modules as subtrees.
class websites::admin inherits websites::hosting::admin {
+ # An administrative Trac instance
#apache::site { "admin":
- # ticket => '64',
# docroot => "${apache::sites_folder}/admin/trac/htdocs",
# use => [ "Trac admin" ],
# redirect_match => "trac",
# tag => 'all',
#}
- #apache::site { "munin":
- # ticket => '153',
- # docroot => '/var/www/munin',
- # owner => "munin",
- # group => "munin",
- # mpm => false,
- # tag => 'all',
- #}
+ apache::site { "munin":
+ docroot => '/var/www/munin',
+ owner => "munin",
+ group => "munin",
+ mpm => false,
+ tag => 'all',
+ }
- #apache::site { "nagios":
- # source => true,
- # docroot => '/usr/share/nagios3/htdocs',
- # mpm => false,
- # tag => 'all',
- #}
+ apache::site { "nagios":
+ source => true,
+ docroot => '/usr/share/nagios3/htdocs',
+ mpm => false,
+ tag => 'all',
+ }
}
class websites inherits websites::hosting {
--- /dev/null
+#
+# Module definitions.
+#
+
+# Nodo automatically import all modules we need.
+import "nodo"
--- /dev/null
+#
+# Node definitions.
+#
+
+#import "nodes/example.pp"
--- /dev/null
+#
+# Puppet site configuration.
+#
+
+import "classes/users.pp"
+import "classes/websites.pp"
+import "modules.pp"
+import "nodes.pp"