Merge "Migrate AFS publishing to mirror-update.opendev.org"
This commit is contained in:
commit
30297fb10d
@ -1,44 +1,15 @@
|
|||||||
# Release afs volumes
|
# Release afs volumes
|
||||||
class openstack_project::afsrelease (
|
class openstack_project::afsrelease (
|
||||||
) {
|
) {
|
||||||
include logrotate
|
|
||||||
|
|
||||||
file { '/usr/local/bin/release-volumes':
|
|
||||||
ensure => present,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0755',
|
|
||||||
source => 'puppet:///modules/openstack_project/openafs/release-volumes.py',
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/var/log/release':
|
|
||||||
ensure => directory,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0755',
|
|
||||||
}
|
|
||||||
|
|
||||||
|
# NOTE(ianw) 2020-02 : migrated to mirror-update and deployed via ansible now
|
||||||
|
# https://review.opendev.org/706176
|
||||||
cron { 'release':
|
cron { 'release':
|
||||||
user => 'root',
|
user => 'root',
|
||||||
minute => '*/5',
|
minute => '*/5',
|
||||||
command => '/usr/local/bin/release-volumes >>/var/log/release/release.log 2>&1',
|
command => '/usr/local/bin/release-volumes >>/var/log/release/release.log 2>&1',
|
||||||
environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
||||||
require => [
|
ensure => absent,
|
||||||
File['/usr/local/bin/release-volumes'],
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
logrotate::file { 'release':
|
|
||||||
ensure => present,
|
|
||||||
log => '/var/log/release/release.log',
|
|
||||||
options => ['compress',
|
|
||||||
'copytruncate',
|
|
||||||
'delaycompress',
|
|
||||||
'missingok',
|
|
||||||
'rotate 7',
|
|
||||||
'daily',
|
|
||||||
'notifempty',
|
|
||||||
],
|
|
||||||
require => Cron['release'],
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -31,9 +31,7 @@
|
|||||||
cron:
|
cron:
|
||||||
name: 'Release afs volumes'
|
name: 'Release afs volumes'
|
||||||
state: present
|
state: present
|
||||||
# NOTE(ianw) : for initial testing purposes while we migrate,
|
job: '/opt/afs-release/release-volumes.py -d >> /var/log/afs-release/afs-release.log 2>&1'
|
||||||
# don't actually release
|
|
||||||
job: '/opt/afs-release/release-volumes.py -d --skip-release >> /var/log/afs-release/afs-release.log 2>&1'
|
|
||||||
hour: '*'
|
hour: '*'
|
||||||
minute: '*/5'
|
minute: '*/5'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user