commit d28248b55862f1d709c81b9e743804d4b2bb1feb
Author: Xavier Lamien <laxathom(a)lxtnow.net>
Date: Sat Sep 7 02:40:49 2013 +0200
Might be good to add the module dir to the git tree, no?! :/
modules/default-setup/manifests/init.pp | 76 +++++++++++++++++++++++++++++++
1 files changed, 76 insertions(+), 0 deletions(-)
---
diff --git a/modules/default-setup/manifests/init.pp
b/modules/default-setup/manifests/init.pp
new file mode 100644
index 0000000..5a00a7a
--- /dev/null
+++ b/modules/default-setup/manifests/init.pp
@@ -0,0 +1,76 @@
+# This is default post-setup for non-yet managed fas hosts.
+
+class default::setup {
+ # I'm not sure this need to be installed on all hosts.
+ Apache_Httpd {
+ welcome => false,
+ serversignature => 'Off',
+ }
+
+ Iptables {
+ # matthias (ovh + office)
+ hosts_ssh => [ '94.23.230.197', '80.169.244.43' ],
+ knock => true,
+ knockone => '666',
+ knocktwo => '3615',
+ }
+ Ip6tables {
+ # matthias (ovh)
+ hosts_ssh => [ '2001:41d0:2:69c5::bb1e' ],
+ knock => true,
+ knockone => '666',
+ knocktwo => '3615',
+ }
+
+ # Non privileged user we want on all nodes, for various things
+ user { 'rpmfusion':
+ comment => 'RPM Fusion User',
+ managehome => true,
+ }
+ file { '/home/rpmfusion/.ssh':
+ require => User['rpmfusion'],
+ ensure => directory,
+ owner => 'rpmfusion', group => 'rpmfusion', mode =>
'0700',
+ }
+ file { '/home/rpmfusion/.ssh/authorized_keys':
+ owner => 'rpmfusion', group => 'rpmfusion', mode =>
'0600',
+ content => '# WARNING: This file is managed by puppet (from site.pp).
+ # WARNING: Do not manually edit it here, all changes will be discarded.
+ ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAaEVu8FZ9d9xhJyzohuJU82XN5fZL/6NqbDB4MTVvoDNaS36qp2z52AWoq5KOkFjzz1EaXspbe/fNSqQV7cNHmod6njPCDreC3e8t+GSFKUt1cMSlwGplXi7cYDQpWZdwlHpPpL5gnDcn57KZ8qn8ZoakdSr8/HFva9v934P5aGu0R87u6b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+ host { 'puppet.ovh.rpmfusion.lan':
+ ip => '192.168.230.11',
+ host_aliases => 'puppet',
+ }
+ host { 'bugzilla.ovh.rpmfusion.lan':
+ ip => '192.168.230.12',
+ host_aliases => 'bugzilla',
+ }
+ host { 'builder1.ovh.rpmfusion.lan':
+ ip => '192.168.230.13',
+ host_aliases => [ 'builder1', 'builder1.rpmfusion.org' ],
+ }
+ host { 'old02.ovh.rpmfusion.lan':
+ ip => '192.168.230.14',
+ host_aliases => 'old02',
+ }
+ host { 'old03.ovh.rpmfusion.lan':
+ ip => '192.168.230.15',
+ host_aliases => [ 'old03', 'buildsys.rpmfusion.org' ],
+ }
+
+ # Common puppet client configuration for all nodes
+ class { 'puppet::agent':
+ forcenoop => true,
+ service => false,
+ cron_enable => true,
+ cron_silent => false,
+ puppet_server => 'puppet.ovh.rpmfusion.lan',
+ }
+}