puppet: Collapse identical blocks.

This commit is contained in:
Alex Vandiver 2023-01-26 21:07:47 +00:00 committed by Tim Abbott
parent ac63c791eb
commit 7f2514b316
1 changed files with 13 additions and 42 deletions

View File

@ -179,53 +179,24 @@ class zulip::app_frontend_base {
onlyif => 'touch /proc/sys/net/core/somaxconn', onlyif => 'touch /proc/sys/net/core/somaxconn',
} }
file { '/home/zulip/tornado': file { [
'/home/zulip/tornado',
'/home/zulip/logs',
'/home/zulip/prod-static',
'/home/zulip/deployments',
'/srv/zulip-npm-cache',
'/srv/zulip-emoji-cache',
'/srv/zulip-uploaded-files-cache',
]:
ensure => directory, ensure => directory,
owner => 'zulip', owner => 'zulip',
group => 'zulip', group => 'zulip',
mode => '0755', mode => '0755',
} }
file { '/home/zulip/logs': file { [
ensure => directory, '/var/log/zulip/queue_error',
owner => 'zulip', '/var/log/zulip/queue_stats',
group => 'zulip', ]:
}
file { '/home/zulip/prod-static':
ensure => directory,
owner => 'zulip',
group => 'zulip',
}
file { '/home/zulip/deployments':
ensure => directory,
owner => 'zulip',
group => 'zulip',
}
file { '/srv/zulip-npm-cache':
ensure => directory,
owner => 'zulip',
group => 'zulip',
mode => '0755',
}
file { '/srv/zulip-emoji-cache':
ensure => directory,
owner => 'zulip',
group => 'zulip',
mode => '0755',
}
file { '/srv/zulip-uploaded-files-cache':
ensure => directory,
owner => 'zulip',
group => 'zulip',
mode => '0755',
}
file { '/var/log/zulip/queue_error':
ensure => directory,
owner => 'zulip',
group => 'zulip',
mode => '0640',
}
file { '/var/log/zulip/queue_stats':
ensure => directory, ensure => directory,
owner => 'zulip', owner => 'zulip',
group => 'zulip', group => 'zulip',