bastelfreak
03/02/2023, 11:02 AMnetwork-online.target? If your agen't doesn't set that in After= in it's systemd unit, add thatJames Paton-Smith
03/02/2023, 11:06 AM# /lib/systemd/system/puppet.service
#
# Local settings can be configured without being overwritten by package upgrades, for example
# if you want to increase puppet open-files-limit to 10000,
# you need to increase systemd's LimitNOFILE setting, so create a file named
# "/etc/systemd/system/puppet.service.d/limits.conf" containing:
# [Service]
# LimitNOFILE=10000
# You can confirm it worked by running systemctl daemon-reload
# then running systemctl show puppet | grep LimitNOFILE
#
[Unit]
Description=Puppet agent
Wants=basic.target
After=basic.target network.target
[Service]
EnvironmentFile=-/etc/sysconfig/puppetagent
EnvironmentFile=-/etc/sysconfig/puppet
EnvironmentFile=-/etc/default/puppet
ExecStart=/opt/puppetlabs/puppet/bin/puppet agent $PUPPET_EXTRA_OPTS --no-daemonize
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
[Install]
WantedBy=multi-user.target
# /etc/systemd/system/puppet.service.d/puppet.service.conf
[Unit]
Description=Puppet agent
Wants=basic.target
After=basic.target network.target network-online.targetJames Paton-Smith
03/02/2023, 11:06 AMAfter=nss-lookup.target but get the same issuebastelfreak
03/02/2023, 11:12 AMsystemd-networkd-wait-online.service and is it enabled?James Paton-Smith
03/02/2023, 11:14 AMNetworkManager-wait-online.service instead thoughbastelfreak
03/02/2023, 11:18 AMbastelfreak
03/02/2023, 11:19 AMbastelfreak
03/02/2023, 11:19 AMJames Paton-Smith
03/02/2023, 11:37 AMSlackbot
03/02/2023, 12:35 PMMassimiliano (Max)
03/02/2023, 12:53 PM"somestring-${$variable_name}-blahblah"
and it works, despite there is typo (can you see the dollar symbol before and after the curly bracket?)
It can be easily reproduced with puppet-debugger:Massimiliano (Max)
03/02/2023, 12:54 PMYury Bushmelev
03/02/2023, 12:56 PMMassimiliano (Max)
03/02/2023, 12:59 PM^ or I put $ at the end it throws an error.
And if I use only the dollar inside the curly bracket it does not interpolate the variable.
Let's wait for @helindbehelindbe
03/02/2023, 1:00 PMMassimiliano (Max)
03/02/2023, 1:01 PMhelindbe
03/02/2023, 1:03 PMYury Bushmelev
03/02/2023, 1:03 PMYury Bushmelev
03/02/2023, 1:03 PMMassimiliano (Max)
03/02/2023, 1:03 PM{$...Massimiliano (Max)
03/02/2023, 1:04 PM{...$ 😵💫helindbe
03/02/2023, 1:04 PMMassimiliano (Max)
03/02/2023, 1:06 PMYury Bushmelev
03/02/2023, 1:11 PMYury Bushmelev
03/02/2023, 1:12 PMNeeloj
03/03/2023, 10:14 AMSlackbot
03/03/2023, 1:24 PMNeeloj
03/03/2023, 2:04 PMSlackbot
03/03/2023, 4:31 PMSlackbot
03/03/2023, 4:34 PM