]> gitweb.fluxo.info Git - puppet-bootstrap.git/commitdiff
Starting to refactor / site_ convention
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 28 Feb 2014 21:57:07 +0000 (18:57 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 28 Feb 2014 21:57:07 +0000 (18:57 -0300)
README.md
manifests/classes/default_conf.pp
manifests/host.pp
manifests/master.pp

index ecea55beff86b4599aeab7e490ac4ac2e3a7a383..3f7262f89cca5125bb3284fa7f67faec934c1ad9 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,5 +1,9 @@
 Puppet Boostrap Module
 ======================
 
-This is a very specific puppet module that boostraps a node for use with
-Hydra Suite, https://git.sarava.org/?p=hydra.git
+This is a multi-purpose but very specific puppet module which can be used:
+
+* As the base repository for a puppet infostructure.
+* As a standalone provisioner for boxes, with Vagrant support.
+* It can be optionally used together with the Hydra Suite from
+  https://git.sarava.org/?p=hydra.git
index df416f9932055ce413d494c38f9f4fbb3e9cf329..ab8280de5b09a9cc55d739e0d170418951a585c0 100644 (file)
@@ -156,22 +156,22 @@ class default_conf {
 
   # files in $default_puppet_conf_dir/files
   file { [ "$default_puppet_conf_dir/files",
-           "$default_puppet_conf_dir/modules/site-nginx",
-           "$default_puppet_conf_dir/modules/site-nginx/files",
-           "$default_puppet_conf_dir/modules/site-nagios",
-           "$default_puppet_conf_dir/modules/site-nagios/files",
-           "$default_puppet_conf_dir/modules/site-postfix",
-           "$default_puppet_conf_dir/modules/site-postfix/files",
-           "$default_puppet_conf_dir/modules/site-mail",
-           "$default_puppet_conf_dir/modules/site-mail/files",
-           "$default_puppet_conf_dir/modules/site-apache",
-           "$default_puppet_conf_dir/modules/site-apache/files",
-           "$default_puppet_conf_dir/modules/site-apache/files/vhosts",
-           "$default_puppet_conf_dir/modules/site-apache/files/htdocs",
-           "$default_puppet_conf_dir/modules/site-apache/files/htdocs/images",
-           "$default_puppet_conf_dir/modules/site-keys",
-           "$default_puppet_conf_dir/modules/site-keys/files",
-           "$default_puppet_conf_dir/modules/site-keys/files/ssl", ]:
+           "$default_puppet_conf_dir/modules/site_nginx",
+           "$default_puppet_conf_dir/modules/site_nginx/files",
+           "$default_puppet_conf_dir/modules/site_nagios",
+           "$default_puppet_conf_dir/modules/site_nagios/files",
+           "$default_puppet_conf_dir/modules/site_postfix",
+           "$default_puppet_conf_dir/modules/site_postfix/files",
+           "$default_puppet_conf_dir/modules/site_mail",
+           "$default_puppet_conf_dir/modules/site_mail/files",
+           "$default_puppet_conf_dir/modules/site_apache",
+           "$default_puppet_conf_dir/modules/site_apache/files",
+           "$default_puppet_conf_dir/modules/site_apache/files/vhosts",
+           "$default_puppet_conf_dir/modules/site_apache/files/htdocs",
+           "$default_puppet_conf_dir/modules/site_apache/files/htdocs/images",
+           "$default_puppet_conf_dir/modules/site_keys",
+           "$default_puppet_conf_dir/modules/site_keys/files",
+           "$default_puppet_conf_dir/modules/site_keys/files/ssl", ]:
     ensure  => directory,
     owner   => "puppet",
     group   => "puppet",
index 179dda8106088ccf3af7d605724dae950e95c942..eaa9e22f339e16b0f46c77425d17fc4869512e6c 100644 (file)
@@ -1,3 +1,10 @@
+#
+# This file is intended to configure the initial
+# machine wich will host the first puppetmaster
+# virtual machine.
+#
+
+# Import the needed config and modules
 import "config.pp"
 import "nodo"
 import "classes/admin_node.pp"
@@ -5,13 +12,11 @@ import "classes/firewall.pp"
 import "classes/users.pp"
 import "classes/default_conf.pp"
 
-include nodo::server
+# The server role
+include nodo::role::server
 
-# creates vserver for administrative node
+# Creates vserver for administrative node
 include admin_node
 
-# creates firewall rules for administrative node's external acess
+# Creates firewall rules for administrative node's external acess
 include firewall
-
-# creates a default puppet configuration in /usr/local/puppet/default-conf
-include default_conf
index 4aa380642e48b68c0baaaaf1e7f6ab0eab74931a..30f6dc2c8ad1a36d0f39ab71ae0a1592f4a3a9b8 100644 (file)
@@ -1,13 +1,13 @@
+#
+# This file is intended to configure the initial
+# puppetmaster node.
+#
+# Once it's running it can setup all the other nodes.
+#
+
+# Import the needed config and modules
 import "config.pp"
 import "nodo"
 
-include git
-
-# puppet config
-package { [ "puppet", "puppetmaster" ]: ensure => installed, }
-
-service { "puppetmaster":
-  ensure  => stopped,
-  require => Package["puppetmaster"]
-}
-
+# Include the master node configuration
+include nodo::role::master