William Myers
10/10/2022, 9:10 PMinclude apache::mod::autoindex
from my class that installs apacheWilliam Myers
10/10/2022, 9:10 PMinclude apache::mod::autoindex
from my class that installs apacheSlackbot
10/10/2022, 9:24 PMssaini
10/10/2022, 9:24 PM[root@puppet-master01 ~]# puppetserver gem list| grep toml
toml-rb (2.1.1)
2. On the VM I want to configure to run puppet_operational_dashboards I have included the following...
9,56 All
class hg_puppet::ops
{
# Include common configuration
include hg_puppet::profile::common
# Install and configure puppet_operational_dashboards
include puppet_operational_dashboards
}
...and running puppet agent -t it asks for the gem toml-rb
[root@puppet-ops ~]# puppet agent -t
Info: Using environment 'puppet_ops'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Internal Server Error: org.jruby.exceptions.LoadError: (LoadError) no such file to load -- toml-rb
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
3. is the puppet_operational_dashboards meant to be installed on a pupperserver or a standalone host?ssaini
10/10/2022, 9:36 PMpuppetserver_hosts
puppetdb_hosts
postgres_hosts
I am wondering if puppet_operational_dashboards doesn't know which are puppetserver it thinks it's the puppetsever itself hence it thinks it shold have the toml-rb gem installed?Slackbot
10/11/2022, 1:47 AMSlyPig
10/11/2022, 1:49 AMKonstantin
10/11/2022, 6:15 AMSlackbot
10/11/2022, 11:25 AMsameer
10/11/2022, 11:26 AMsameer
10/11/2022, 11:30 AMjms1
10/11/2022, 1:07 PMrole fact which ends up feeding into include "role::${xxx}", so the "owner" of the machine (who has no access to the puppet servers) can do something like echo role=xyz > /etc/facter/facts.d/role.txt on the machine to tell puppet what "kind" of machine it is (since role classes are supposed to be "one per machine", and then you can add additional profile classes as needed)helindbe
10/11/2022, 1:13 PMnew function for that version: https://github.com/puppetlabs/puppet/blob/4.5.2/lib/puppet/functions/new.rb#L386 says you canhelindbe
10/11/2022, 1:13 PMnew function for that version: https://github.com/puppetlabs/puppet/blob/4.5.2/lib/puppet/functions/new.rb#L386 says you canrismoney
10/11/2022, 1:26 PMvchepkov
10/11/2022, 1:40 PMCVQuesty
10/11/2022, 1:41 PMCVQuesty
10/11/2022, 1:43 PMhelindbe
10/11/2022, 1:43 PMconvert_to function, but you can write something like this:
Hash({"key1"=>1, "key2"=>2}.map()|$k,$v|{ if $k == "key1" {[$k,100]} else {[$k, $v]})
in later version, it reads better when using `convert_to`:
{"key1"=>1, "key2"=>2}.map()|$k,$v|{ if $k == "key1" {[$k,100]} else {[$k, $v]}).convert_to(Hash)CVQuesty
10/11/2022, 1:44 PMhelindbe
10/11/2022, 1:44 PMDr Bunsen Honeydew
10/11/2022, 1:45 PMhelindbe
10/11/2022, 1:50 PMrismoney
10/11/2022, 1:51 PMhelindbe
10/11/2022, 2:01 PM$updated = Hash($items.map |$name, $attr| {
[$name, {
host => regsubst( $attr['host'] , 'old-domain' , 'new-domain' ),
port => $attr['port'] + 1000,
note => if $attr['note'] =~ Undef { '' } else {$attr['port']},
}]
}helindbe
10/11/2022, 2:01 PM$updated = Hash($items.map |$name, $attr| {
[$name, {
host => regsubst( $attr['host'] , 'old-domain' , 'new-domain' ),
port => $attr['port'] + 1000,
note => if $attr['note'] =~ Undef { '' } else {$attr['port']},
}]
}CVQuesty
10/11/2022, 2:05 PMCVQuesty
10/11/2022, 2:06 PMhelindbe
10/11/2022, 2:15 PMSlackbot
10/11/2022, 2:19 PM