--- /dev/null
+snapshot-1 -fstype=nfs,ro,tcp 10.0.0.1:/storage/snapshot-farm-1
+snapshot-2 -fstype=nfs,ro,tcp 10.0.0.2:/storage/snapshot-farm-2
+snapshot-3 -fstype=nfs,ro,tcp 10.0.0.3:/storage/snapshot-farm-3
+snapshot-4 -fstype=nfs,ro,tcp 10.0.0.4:/storage/snapshot-farm-4
--- /dev/null
+/auto.dsa /etc/auto.dsa
class autofs::bytemark {
- package { 'autofs': ensure => installed }
- package { 'nfs-common': ensure => installed }
+ include autofs::common
- exec { 'autofs reload':
- path => '/usr/bin:/usr/sbin:/bin:/sbin',
- command => 'service autofs reload',
- refreshonly => true,
- require => Package['autofs'],
- }
-
-
- file { '/etc/auto.master.d':
- ensure => directory
- }
file { '/etc/auto.master.d/dsa.autofs':
source => "puppet:///modules/autofs/bytemark/auto.master.d-dsa.autofs",
notify => Exec['autofs reload']
--- /dev/null
+class autofs::bytemark {
+ package { 'autofs': ensure => installed }
+ package { 'nfs-common': ensure => installed }
+
+ exec { 'autofs reload':
+ path => '/usr/bin:/usr/sbin:/bin:/sbin',
+ command => 'service autofs reload',
+ refreshonly => true,
+ require => Package['autofs'],
+ }
+
+
+ file { '/etc/auto.master.d':
+ ensure => directory
+ }
+}
class autofs {
- if $::hostname in [pejacevic, piu-slave-bm-a, picconi, coccia, couper, dillon, donizetti, ticharich, delfin, quantz] {
- include autofs::bytemark
+ case $::hostname {
+ pejacevic, piu-slave-bm-a, picconi, coccia, couper, dillon, donizetti, ticharich, delfin, quantz: {
+ include autofs::bytemark
+ }
+ lw05,lw06: {
+ include autofs::leaseweb
+ }
}
}
--- /dev/null
+class autofs::bytemark {
+ include autofs::common
+
+ file { '/etc/auto.master.d/dsa.autofs':
+ source => "puppet:///modules/autofs/leaseweb/auto.master.d-dsa.autofs",
+ notify => Exec['autofs reload']
+ }
+ file { '/etc/auto.dsa':
+ source => "puppet:///modules/autofs/leaseweb/auto.dsa",
+ notify => Exec['autofs reload']
+ }
+}