]> gitweb.fluxo.info Git - puppet-bootstrap.git/commitdiff
Misc improvements and cleanup
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 4 Mar 2014 16:35:18 +0000 (13:35 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 4 Mar 2014 16:35:18 +0000 (13:35 -0300)
Makefile
bin/dependencies
hiera/bootstrap.yaml
manifests/classes/configurator.pp
manifests/host.pp
manifests/master.pp
manifests/repository.pp [deleted file]
manifests/vagrant.pp

index ff8aa0d205c4bff2a411fee98f4c95f286017b8b..0f6959ed8d6e0b0c4776251a5fcb3edbb6e4d67c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,21 @@
 #
-#  Puppet Boostrap Makefile by Silvio Rhatto (rhatto at riseup.net).
+# Puppet Boostrap Makefile by Silvio Rhatto (rhatto at riseup.net).
 #
-#  This Makefile is free software; you can redistribute it and/or modify it
-#  under the terms of the GNU General Public License as published by the Free
-#  Software Foundation; either version 3 of the License, or any later version.
+# This Makefile is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the Free
+# Software Foundation; either version 3 of the License, or any later version.
 #
-#  This Makefile is distributed in the hope that it will be useful, but WITHOUT
-#  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-#  #  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+# This Makefile is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# #  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 #
-#  You should have received a copy of the GNU General Public License along with
-#  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
-#  Place - Suite 330, Boston, MA 02111-1307, USA
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+# Place - Suite 330, Boston, MA 02111-1307, USA
 #
 
-REPO   = git://git.sarava.org/puppet-bootstrap.git
 CWD    = $(shell pwd)
+REPO   = git://git.sarava.org/puppet-bootstrap.git
 PUPPET = FACTER_BOOTSTRAP_PATH="$(CWD)" puppet apply --confdir="$(CWD)" --modulepath=modules
 
 all: clean remote modules
index 148ab849a4981ead3b02bd362320b55e033365e4..c4108522bf113bac3cf7b617d03d3c7752ec30d3 100755 (executable)
@@ -18,6 +18,6 @@ function provision_package {
 }
 
 # Ensure basic packages are installed.
-for package in puppet ruby-hiera-puppet mr; do
+for package in puppet ruby-hiera-puppet mr whois; do
   provision_package $package
 done
index e189b51cc059b4db2cfa021b7af6b49d189dba7e..23538462fb57bff6c99472aeafb8b4d270140b46 100644 (file)
@@ -1,12 +1,28 @@
 ---
 #
-# Boostrap
+# Puppet Bootstrap Configuration Parameters.
+#
+# This file is responsible to set custom values to your new puppet repository
+# to reflect the custom configuration for your infrastructure.
+#
+# This configuration is useful mostly after you cloned the puppet-boostrap module
+# and want to configure it to boostrap a whole puppetmaster infrastructure.
+#
+
+# The base domain for your infrastructure.
+bootstrap::base_domain: 'vagrantup.com'
+
+#
+# Root password.
+#
+# Use "mkpasswd -m sha-512" to generate root and first user's passwords.
+bootstrap::root::password: ''
+
+#
+# First user account
 #
-# Use "mkpasswd -m sha-512" to generate root and first user's passwords
 # Do not include "ssh-rsa " into the sshkey definition.
-bootstrap::base_domain:          'vagrantup.com'
-bootstrap::root::password:       ''
-bootstrap::first_user:           'user'
+bootstrap::first_user:           ''
 bootstrap::first_user::password: ''
 bootstrap::first_user::sshkey:   ''
 bootstrap::first_user::email:    ''
index b9b7e9e69db8e11b26e58cdbbdad0fdbb32a837d..cf2d891d371018297d591a65d311132036eeb660 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Puppet Bootstrap Configuration Manifest
+# Puppet Bootstrap Configuration Manifest.
 #
 # This file is responsible to set custom configuration in the bootstrap
 # repository for values set in the hiera configuration.
index 6cb29275eeb5443795de7ddc8d320533f3d078ff..ea23fb49b13805b6218b01f9bc964eca00f6314f 100644 (file)
@@ -4,8 +4,8 @@
 # virtual machine.
 #
 
-# Import the needed config and modules
-import "nodo"
+# Import site configuration
+import "site.pp"
 
 # The server role
 include nodo::role::server
index 0b645237a6fc4e220d744fdc3009222663d5ea01..f53f00e03a47371dcc0c21ba6829a0fe25e322c8 100644 (file)
@@ -5,9 +5,8 @@
 # Once it's running it can setup all the other nodes.
 #
 
-# Import the needed config and modules
-import "config.pp"
-import "nodo"
+# Import site configuration
+import "site.pp"
 
 # Include the master node configuration
 include nodo::role::master
diff --git a/manifests/repository.pp b/manifests/repository.pp
deleted file mode 100644 (file)
index 9564123..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#
-# This manifest is intended to generate the initial
-# puppet repository.
-#
-
-# Import the needed config and modules
-import "config.pp"
-import "classes/puppet_bootstrap.pp"
-
-# Setup modules for use with other stages
-include puppet_bootstrap
-
-puppet_bootstrap::puppet_modules{ "modules":
-  puppet_dir => "$puppet_bootstrap_tmpdir",
-}
index 94d5896ac605f90075a368a8b75625e69df6dae3..7e6c6c77dbd6cfbacbaff291ec612bfe590dcb42 100644 (file)
@@ -1,5 +1,10 @@
-# Import main module
-import "nodo"
+#
+# This manifest is intended to configure a vagrant
+# virtual machine.
+#
+
+# Import site configuration
+import "site.pp"
 
 #
 # Stage definitions