aboutsummaryrefslogtreecommitdiff
path: root/manifests/classes/default_conf.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-04 11:38:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-04 11:38:24 -0300
commit71e2d679d6757b9f7b6680468c4c6d6e3c42dcc6 (patch)
treeba38cef2d9f7aac04f5e333f65e6ba29eedd655b /manifests/classes/default_conf.pp
parente1db7cfa877187a2e711e1f6500e452cf24fa006 (diff)
downloadpuppet-bootstrap-71e2d679d6757b9f7b6680468c4c6d6e3c42dcc6.tar.gz
puppet-bootstrap-71e2d679d6757b9f7b6680468c4c6d6e3c42dcc6.tar.bz2
Initial config target
Diffstat (limited to 'manifests/classes/default_conf.pp')
-rw-r--r--manifests/classes/default_conf.pp296
1 files changed, 0 insertions, 296 deletions
diff --git a/manifests/classes/default_conf.pp b/manifests/classes/default_conf.pp
deleted file mode 100644
index ab8280d..0000000
--- a/manifests/classes/default_conf.pp
+++ /dev/null
@@ -1,296 +0,0 @@
-class default_conf {
-
- $templates_dir = "$puppet_bootstrap_tmpdir/templates"
- $default_puppet_conf_dir = "$puppet_dir/default-conf"
-
- # directories
- file { ["$puppet_dir", "$default_puppet_conf_dir"]:
- ensure => directory,
- owner => "puppet",
- group => "puppet",
- mode => 0755,
- require => Package["puppet"],
- }
-
- file { [ "$default_puppet_conf_dir/files",
- "$default_puppet_conf_dir/manifests",
- "$default_puppet_conf_dir/modules",
- "$default_puppet_conf_dir/manifests/classes",
- "$default_puppet_conf_dir/manifests/nodes" ]:
- ensure => directory,
- owner => "puppet",
- group => "puppet",
- mode => 0755,
- require => File["$default_puppet_conf_dir"],
- }
-
- # files in $default_puppet_conf_dir
- file { "$default_puppet_conf_dir/puppet.conf":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => Package["puppet"],
- content => template("$templates_dir/puppet/puppet.conf.erb"),
- }
-
- file { "$default_puppet_conf_dir/fileserver.conf":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => Package["puppet"],
- content => template("$templates_dir/puppet/fileserver.conf.erb"),
- }
-
- file { "$default_puppet_conf_dir/auth.conf":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => Package["puppet"],
- content => template("$templates_dir/puppet/auth.conf.erb"),
- }
-
- # files in $default_puppet_conf_dir/manifests
- file { "$default_puppet_conf_dir/manifests/site.pp":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/manifests"] ],
- content => template("$templates_dir/puppet/site.pp.erb"),
- }
-
- file { "$default_puppet_conf_dir/manifests/modules.pp":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/manifests"] ],
- content => template("$templates_dir/puppet/modules.pp.erb"),
- }
-
- file { "$default_puppet_conf_dir/manifests/nodes.pp":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/manifests"] ],
- content => template("$templates_dir/puppet/nodes.pp.erb"),
- }
-
- # files in $default_puppet_conf_dir/manifests/classes
- file { "$default_puppet_conf_dir/manifests/classes/websites.pp":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/manifests/classes"] ],
- content => template("$templates_dir/puppet/websites.pp.erb"),
- }
-
- file { "$default_puppet_conf_dir/manifests/classes/users.pp":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/manifests/classes"] ],
- content => template("$templates_dir/puppet/users.pp.erb"),
- }
-
- # files in $default_puppet_conf_dir/manifests/nodes
- file { "$default_puppet_conf_dir/manifests/nodes/$hostname.pp":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/manifests/nodes"] ],
- content => template("$templates_dir/puppet/server.pp.erb"),
- }
-
- file { "$default_puppet_conf_dir/manifests/nodes/$hostname-master.pp":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/manifests/nodes"] ],
- content => template("$templates_dir/puppet/master.pp.erb"),
- }
-
- file { "$default_puppet_conf_dir/manifests/nodes/$hostname-proxy.pp":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/manifests/nodes"] ],
- content => template("$templates_dir/puppet/proxy.pp.erb"),
- }
-
- file { "$default_puppet_conf_dir/manifests/nodes/$hostname-web.pp":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/manifests/nodes"] ],
- content => template("$templates_dir/puppet/web.pp.erb"),
- }
-
- file { "$default_puppet_conf_dir/manifests/nodes/$hostname-storage.pp":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/manifests/nodes"] ],
- content => template("$templates_dir/puppet/storage.pp.erb"),
- }
-
- file { "$default_puppet_conf_dir/manifests/nodes/$hostname-test.pp":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/manifests/nodes"] ],
- content => template("$templates_dir/puppet/test.pp.erb"),
- }
-
- # 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", ]:
- ensure => directory,
- owner => "puppet",
- group => "puppet",
- mode => 0755,
- }
-
- file { "$default_puppet_conf_dir/files/empty":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/files"] ],
- }
-
- file { "$default_puppet_conf_dir/modules/site-apache/htdocs/images/README.html":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/modules/site-apache/files/htdocs/images"] ],
- content => template("$templates_dir/apache/htdocs/images/README.html.erb"),
- }
-
- file { "$default_puppet_conf_dir/modules/site-apache/files/htdocs/index.html":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/modules/site-apache/files/htdocs"] ],
- content => template("$templates_dir/apache/htdocs/index.html.erb"),
- }
-
- file { "$default_puppet_conf_dir/modules/site-apache/files/htdocs/missing.html":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/modules/site-apache/files/htdocs"] ],
- content => template("$templates_dir/apache/htdocs/missing.html.erb"),
- }
-
- file { "$default_puppet_conf_dir/modules/site-apache/files/vhosts/git":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/modules/site-apache/files/vhosts"] ],
- content => template("$templates_dir/apache/vhosts/git.erb"),
- }
-
- file { "$default_puppet_conf_dir/modules/site-apache/files/vhosts/lists":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/modules/site-apache/files/vhosts"] ],
- content => template("$templates_dir/apache/vhosts/lists.erb"),
- }
-
- file { "$default_puppet_conf_dir/modules/site-apache/files/vhosts/mail":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/modules/site-apache/files/vhosts"] ],
- content => template("$templates_dir/apache/vhosts/mail.erb"),
- }
-
- file { "$default_puppet_conf_dir/modules/site-apache/files/vhosts/nagios":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/modules/site-apache/files/vhosts"] ],
- content => template("$templates_dir/apache/vhosts/nagios.erb"),
- }
-
- file { "$default_puppet_conf_dir/modules/site-apache/files/vhosts/wiki":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/modules/site-apache/files/vhosts"] ],
- content => template("$templates_dir/apache/vhosts/wiki.erb"),
- }
-
- file { "$default_puppet_conf_dir/modules/site-mail/files/aliases":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/modules/site-mail/files"] ],
- content => template("$templates_dir/etc/aliases.erb"),
- }
-
- file { "$default_puppet_conf_dir/modules/site-nagios/files/htpasswd.users":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/modules/site-nagios/files"] ],
- content => template("$templates_dir/etc/nagios3/htpasswd.users.erb"),
- }
-
- file { "$default_puppet_conf_dir/modules/site-nginx/files/$domain":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/modules/site-nginx/files"] ],
- content => template("$templates_dir/etc/nginx/domain.erb"),
- }
-
- file { "$default_puppet_conf_dir/modules/site-postfix/files/tls_policy":
- ensure => present,
- owner => "puppet",
- group => "puppet",
- mode => 0644,
- require => [ Package["puppet"], File["$default_puppet_conf_dir/modules/site-postfix/files"] ],
- content => template("$templates_dir/postfix/tls_policy.erb"),
- }
-}