Copy files recursively
By declaring the directory copy with recurse set to true, there is no longer a need to manage every single individual file in the directory. This might (almost certainly?) have consequences when files are removed from the repository, but that's not really a concern in this specific scenario.
This commit is contained in:
parent
345516bf8b
commit
29748842a7
2 changed files with 18 additions and 49 deletions
|
@ -69,7 +69,7 @@ class { 'apache':
|
||||||
}
|
}
|
||||||
|
|
||||||
# CONFIGURATIONS
|
# CONFIGURATIONS
|
||||||
ssh::server::configline { 'Port': value => '22984' }
|
ssh::server::configline { 'Port': value => '22985' }
|
||||||
ssh::server::configline { 'PermitRootLogin': value => 'no' }
|
ssh::server::configline { 'PermitRootLogin': value => 'no' }
|
||||||
ssh::server::configline { 'PasswordAuthentication': value => 'yes' }
|
ssh::server::configline { 'PasswordAuthentication': value => 'yes' }
|
||||||
ssh::server::configline { 'AllowUsers/1': value => 'atomaka' }
|
ssh::server::configline { 'AllowUsers/1': value => 'atomaka' }
|
||||||
|
@ -104,64 +104,33 @@ apache::vhost { 'iceman.atomaka.com':
|
||||||
|
|
||||||
# FILES
|
# FILES
|
||||||
file { '/var/www/tc362.atomaka.com':
|
file { '/var/www/tc362.atomaka.com':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'atomaka',
|
owner => 'atomaka',
|
||||||
group => 'web',
|
group => 'web',
|
||||||
mode => '2775',
|
mode => '2775',
|
||||||
before => Apache::Vhost['tc362.atomaka.com'],
|
source => '/tmp/puppet/files/tc362',
|
||||||
|
recurse => true,
|
||||||
|
before => Apache::Vhost['tc362.atomaka.com'],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/var/www/maverick.atomaka.com':
|
file { '/var/www/maverick.atomaka.com':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'maverick',
|
|
||||||
group => 'maverick',
|
|
||||||
mode => '2775',
|
|
||||||
before => Apache::Vhost['maverick.atomaka.com'],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/var/www/maverick.atomaka.com/index.html':
|
|
||||||
ensure => present,
|
|
||||||
owner => 'maverick',
|
owner => 'maverick',
|
||||||
group => 'maverick',
|
group => 'maverick',
|
||||||
content => file('/tmp/puppet/files/maverick/index.html'),
|
mode => '2775',
|
||||||
}
|
source => '/tmp/puppet/files/maverick',
|
||||||
|
recurse => true,
|
||||||
file { '/var/www/maverick.atomaka.com/maverick.png':
|
before => Apache::Vhost['maverick.atomaka.com'],
|
||||||
ensure => present,
|
|
||||||
owner => 'maverick',
|
|
||||||
group => 'maverick',
|
|
||||||
content => file('/tmp/puppet/files/maverick/maverick.png'),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/var/www/iceman.atomaka.com':
|
file { '/var/www/iceman.atomaka.com':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'iceman',
|
|
||||||
group => 'iceman',
|
|
||||||
mode => '2775',
|
|
||||||
before => Apache::Vhost['maverick.atomaka.com'],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/var/www/iceman.atomaka.com/index.html':
|
|
||||||
ensure => present,
|
|
||||||
owner => 'iceman',
|
owner => 'iceman',
|
||||||
group => 'iceman',
|
group => 'iceman',
|
||||||
content => file('/tmp/puppet/files/iceman/index.html'),
|
mode => '2775',
|
||||||
}
|
source => '/tmp/puppet/files/iceman',
|
||||||
|
recurse => true,
|
||||||
file { '/var/www/iceman.atomaka.com/iceman.png':
|
before => Apache::Vhost['iceman.atomaka.com'],
|
||||||
ensure => present,
|
|
||||||
owner => 'iceman',
|
|
||||||
group => 'iceman',
|
|
||||||
content => file('/tmp/puppet/files/iceman/iceman.png'),
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/var/www/tc362.atomaka.com/index.html':
|
|
||||||
ensure => present,
|
|
||||||
owner => 'atomaka',
|
|
||||||
group => 'web',
|
|
||||||
mode => '0664',
|
|
||||||
content => file('/tmp/puppet/files/index.html'),
|
|
||||||
require => File['/var/www/tc362.atomaka.com'],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/home/atomaka/web':
|
file { '/home/atomaka/web':
|
||||||
|
|
Loading…
Reference in a new issue