P. Aiello
11/03/2022, 10:21 AMError while evaluating a Function Call, 'compare' compare(): Non comparable type. Only values of the types Numeric, String, Semver, Timestamp and Timestamp can be compared. Got Timestamp['2022-11-03T00:00:00.000000000 UTC']-Type and Timestamp['2023-10-01T00:00:00.000000000 UTC']
What am I doing wrong?Prathamesh Badge
11/03/2022, 10:48 AMP. Aiello
11/03/2022, 11:11 AMTimestamp.new().strftime('%F') ) then makes the comparison with ISO strings also possible. (this if one doesn’t want to use timestamps often)Ganaparthi Nikhil
11/03/2022, 11:33 AMGanaparthi Nikhil
11/03/2022, 11:34 AMSlackbot
11/03/2022, 11:51 AMSlackbot
11/03/2022, 1:28 PMGraeme Donaldson
11/03/2022, 1:31 PMError: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Class[Apache] is already declared; cannot redeclare (file: /etc/puppetlabs/code/modules/profile/manifests/oldwebserver/apache2.pp, line: 29) (file: /etc/puppetlabs/code/modules/profile/manifests/oldwebserver/apache2.pp, line: 29, column: 3) on node <http://example.net|example.net>
Am I missing something? It's mentioning the same line on the same file, how is that a duplicated declaration? 🤔nmaludy
11/03/2022, 4:49 PM$content_fapolicyd = @("END")
# This file is managed by Puppet
# Changes will be overwritten
allow perm=open dir=/usr/lib/jvm trust=1 : dir=/etc/puppetlabs/code/environments all trust=0
| END
file { '/etc/fapolicyd/rules.d/60-puppetserver.rules':
ensure => file,
owner => 'root',
group => 'fapolicyd',
mode => '0644',
content => $content_fapolicyd,
notify => Exec['puppetserver - load fapolicyd rules'],
}
exec { 'puppetserver - load fapolicyd rules':
command => 'fagenrules --load',
path => ['/usr/bin', '/usr/sbin'],
refreshonly => true,
require => Service['fapolicyd'],
}William Myers
11/03/2022, 5:14 PMWilliam Myers
11/03/2022, 5:15 PMWilliam Myers
11/03/2022, 5:16 PMnatemccurdy
11/03/2022, 5:17 PMsite-modules/.
These are typically things like the profile and role module, but this can also include any custom modules your organization creates.
The modules/ directory is usually considered off limits to humans and is where tools like r10k will put its modules that it pulls from your Puppetfile.natemccurdy
11/03/2022, 5:18 PMPuppetfile. These are not committed to control-repos and are not part of its git history.natemccurdy
11/03/2022, 5:18 PMPuppetfile. These are not committed to control-repos and are not part of it’s git history.natemccurdy
11/03/2022, 5:19 PMPuppetfile. These are not committed to control-repos and are not part of its git history.Slackbot
11/03/2022, 5:19 PMnatemccurdy
11/03/2022, 5:19 PMmodules/ is ignored in git since that folder is managed by r10k (usually)William Myers
11/03/2022, 5:19 PMWilliam Myers
11/03/2022, 5:20 PMWilliam Myers
11/03/2022, 5:20 PMnmaludy
11/03/2022, 5:26 PMdata/<site>/whatever.yaml hiera filesnmaludy
11/03/2022, 5:26 PMWilliam Myers
11/03/2022, 5:32 PMWilliam Myers
11/03/2022, 5:41 PMWilliam Myers
11/03/2022, 5:41 PMnmaludy
11/03/2022, 5:46 PMnmaludy
11/03/2022, 6:19 PMnmaludy
11/03/2022, 6:19 PMnmaludy
11/03/2022, 6:58 PM