Changed to vox systemd module

* updated Puppetfile
  * updated puppet-enc timer/service
  * updated puppet-g10k timer/service
This commit is contained in:
Ben Vincent 2023-06-25 14:34:42 +10:00
parent 5ee4891157
commit f1f39ef4e3
3 changed files with 57 additions and 24 deletions

View File

@ -5,8 +5,9 @@ moduledir 'external_modules'
mod 'puppetlabs-stdlib', '9.1.0' mod 'puppetlabs-stdlib', '9.1.0'
mod 'puppetlabs-inifile', '6.0.0' mod 'puppetlabs-inifile', '6.0.0'
mod 'puppetlabs-concat', '9.0.0' mod 'puppetlabs-concat', '9.0.0'
mod 'eyp-eyplib', '0.1.24' #mod 'eyp-eyplib', '0.1.24'
mod 'eyp-systemd', '3.1.0' #mod 'eyp-systemd', '3.1.0'
mod 'puppet-systemd', '5.1.0'
mod 'ghoneycutt-puppet', '3.3.0' mod 'ghoneycutt-puppet', '3.3.0'
mod 'puppet-archive', '7.0.0' mod 'puppet-archive', '7.0.0'
mod 'puppet-chrony', '2.6.0' mod 'puppet-chrony', '2.6.0'

View File

@ -67,17 +67,33 @@ class profiles::puppet::enc (
require => Package['git'], require => Package['git'],
} }
systemd::service { 'puppet-enc': $_timer = @(EOT)
description => 'puppet-enc update service', [Unit]
execstart => '/opt/puppetlabs/bin/puppet-enc', Description=puppet-enc downloader timer
user => 'root', [Timer]
require => File['/opt/puppetlabs/bin/puppet-enc'], OnCalendar=*:0/1
} RandomizedDelaySec=1s
[Install]
WantedBy=timers.target
EOT
systemd::timer { 'puppet-enc': $_service = @(EOT)
description => 'Run puppet-enc every minute', [Unit]
unit => 'puppet-enc.service', Description=puppet-enc downloader service
on_calendar => '*:0/1', [Service]
require => Systemd::Service['puppet-enc'], Type=oneshot
ExecStart=/opt/puppetlabs/bin/puppet-enc
User=root
Group=root
PermissionsStartOnly=false
PrivateTmp=no
EOT
systemd::timer { 'puppet-enc.timer':
timer_content => $_timer,
service_content => $_service,
active => true,
enable => true,
require => File['/opt/puppetlabs/bin/puppet-enc'],
} }
} }

View File

@ -54,17 +54,33 @@ class profiles::puppet::g10k {
require => Archive['/tmp/g10k.zip'], require => Archive['/tmp/g10k.zip'],
} }
systemd::service { 'puppet-g10k': $_timer = @(EOT)
description => 'puppet-g10k update service', [Unit]
execstart => '/opt/puppetlabs/bin/puppet-g10k', Description=puppet-g10k downloader timer
user => 'root', [Timer]
require => File['/opt/puppetlabs/bin/puppet-g10k'], OnCalendar=*:0/1
} RandomizedDelaySec=1s
[Install]
WantedBy=timers.target
EOT
systemd::timer { 'puppet-g10k': $_service = @(EOT)
description => 'Run puppet-g10k every minute', [Unit]
unit => 'puppet-g10k.service', Description=puppet-g10k downloader service
on_calendar => '*:0/1', [Service]
require => Systemd::Service['puppet-g10k'], Type=oneshot
ExecStart=/opt/puppetlabs/bin/puppet-g10k
User=root
Group=root
PermissionsStartOnly=false
PrivateTmp=no
EOT
systemd::timer { 'puppet-g10k.timer':
timer_content => $_timer,
service_content => $_service,
active => true,
enable => true,
require => File['/opt/puppetlabs/bin/puppet-g10k'],
} }
} }