With:
loginctl_user{'higgs':
linger => enabled,
}
systemd::user_service { 'hour.service':
ensure => true,
enable => true,
user => 'higgs',
require => loginctl_user['higgs'],
}
it can fail with
Failed to connect to user scope bus via local transport: No such file or directory
adding an extra sleep.
exec{'/usr/bin/sleep 10 && touch /tmp/sleep-only-once':
creates => '/tmp/sleep-only-once',
require => Loginctl_user['higgs'],
before => systemd::user_service { 'hour.service':},
}
is enough for success.
If this is fixed remove this workaround that was added in #577
With:
it can fail with
adding an extra sleep.
is enough for success.
If this is fixed remove this workaround that was added in #577