David Sandilands
02/14/2023, 3:43 PMDr Bunsen Honeydew
02/14/2023, 3:45 PMSlackbot
02/14/2023, 4:44 PMbastelfreak
02/14/2023, 4:44 PMspin
02/14/2023, 4:49 PMspin
02/14/2023, 4:53 PMSlackbot
02/14/2023, 5:04 PMPaul Mekhedjian
02/14/2023, 5:43 PMDr Bunsen Honeydew
02/14/2023, 5:45 PMSlackbot
02/14/2023, 7:21 PMvchepkov
02/14/2023, 7:26 PM# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
There is no way I can get rid of :: entry using hosts, I have to use host and file_line resource to manage the same file, which probably will cause bunch of conflictsAnthony Paragas
02/14/2023, 8:36 PM[8:50 PM] GPG error: <http://apt-mirror.shapeways.net/puppet> xenial InRelease: The following signatures were invalid: KEYEXPIRED 1629234366 KEYEXPIRED 1629234366 KEYEXPIRED 1629234366Slackbot
02/14/2023, 8:44 PMspin
02/14/2023, 10:31 PMvStone
02/15/2023, 9:15 AMcontent => epp('clients/testfile.pp'),vStone
02/15/2023, 9:16 AMfile {'/etc/test_dir/test_file': content => epp(''),}Neeloj
02/15/2023, 9:20 AMcontent => epp('clients/testfile.pp'), here is still .epp and can I change it on the agent to .sh ?Neeloj
02/15/2023, 9:21 AMcontent => epp('clients/testfile.pp'), here is still .epp and can I change it on the agent to .sh ?Slackbot
02/15/2023, 10:18 AMNeeloj
02/15/2023, 10:38 AMserver="<%= $facts['puppet_server'] %>" but the variable is then empty on the client... and this is how I use it:
file { 'testfile_template':
ensure => file,
content => epp('testtemplate/testfile_template.epp'),
path => '/etc/check/testfile_template.sh',
}Neeloj
02/15/2023, 10:38 AMserver="<%= $facts['puppet_server'] %>" but the variable is then empty on the client... and this is how I use it:
file { 'testfile_template':
ensure => file,
content => epp('testtemplate/testfile_template.epp'),
path => '/usr/local/bin/testfile_template.sh',
}Neeloj
02/15/2023, 10:50 AM# puppet module install puppetlabs-stdlib --version 8.5.0 --force now it works.
And this is how it works in template for all other:
server="<%= $facts['puppet_server'] %>"
Thank you @zipkid & @bastelfreakNeeloj
02/15/2023, 10:56 AMSlackbot
02/15/2023, 1:50 PMBrian Schonecker
02/15/2023, 1:57 PMrequired_packages:
cifs-utils:
ensure: installed
xorg-x11-apps:
ensure: installed
oracle-instantclient19.9-basic:
ensure: installed
oracle-instantclient19.9-sqlplus:
ensure: installed
glibc:
ensure: installed
and I'm not sure how I can tell my mount resources how to require all of the packages in $required_packages before trying to mount the CIFS filesystem. Yes, I could just do "require => Package[cifs-utils]" on the resource but what if there's another package that my application requires in order to run properly? It seems to me that it would be more scalable if I could just do something like "require => Package[$required_packages]". I'm embarrassed to keep asking these (seemingly) simple questions but I just can't wrap my brain around the right way to do things and to keep the code scalable. Specifically, here is the code in question. The packages need to be installed before the mount resources kick off. Is "require => Package[cifs-utils]" really the way to do it? If so, that means I need to keep track of the cifs-utils in two places: common.yaml and my class module and that's definitely not "Do not repeat yourself."chadh
02/15/2023, 2:02 PMMassimiliano (Max)
02/15/2023, 2:40 PMSlackbot
02/15/2023, 2:47 PMDavid Sandilands
02/15/2023, 2:47 PMDavid Sandilands
02/15/2023, 2:48 PM