David Sandilands
02/02/2023, 2:36 PMDavid Sandilands
02/02/2023, 2:36 PMcruelsmith
02/02/2023, 2:59 PMSlackbot
02/02/2023, 3:17 PMcruelsmith
02/02/2023, 3:17 PM/usr/local/bin/bundle wrapper script that is not shipped with the puppet agent to do calls like bundle install and bundle exec ./example.rb.
So the question can i do an alternative ruby call to do the bundle jobs or should i manually create that wrapper script for bundle here?
Everything what i found currently always reference that bundler wrapper script that either shipped by the OS package or by the ruby gem itself to /usr/local/bin/cruelsmith
02/02/2023, 3:18 PM/usr/local/bin/bundle wrapper script that is not shipped with the puppet agent to do calls like bundle install and bundle exec ./example.rb.
So the question is can i do an alternative ruby call to do the bundle jobs or should i manually create that wrapper script for bundle here?
Everything what i found currently always reference that bundler wrapper script that either shipped by the OS package or by the ruby gem itself to /usr/local/bin/cruelsmith
02/02/2023, 3:19 PM/usr/local/bin/bundle wrapper script that is not shipped with the puppet agent to do calls like bundle install and bundle exec ./example.rb.
So the question is can i do an alternative ruby call to do the bundle jobs or should i manually create that wrapper script for bundle here?
Everything what i found currently always reference that bundler wrapper script under /usr/local/bin/ that either shipped by the OS package or by the ruby gem itself.cruelsmith
02/02/2023, 3:28 PMcruelsmith
02/02/2023, 3:36 PMfile { 'Gemfile':
user => 'root',
group => 'root',
mode => '0400',
content => [
"# frozen_string_literal: true\n",
'source "<https://rubygems.org>"',
$ruby_gems_required.map |$value| { "gem '${value}'\n" },
].join("\n"),
}
~> exec { "${bundle_install_path}: bundle install":
command => "/opt/puppetlabs/puppet/bin/bundle config set --local path 'vendor/bundle' && /opt/puppetlabs/puppet/bin/bundle install --jobs $(nproc)",
cwd => $bundle_install_path,
creates => "${bundle_install_path}/vendor/bundle/",
path => $facts['path'],
}
-> exec { "${bundle_install_path}: bunde update":
command => '/opt/puppetlabs/puppet/bin/bundle update --jobs $(nproc)',
cwd => $bundle_install_path,
unless => '/opt/puppetlabs/puppet/bin/bundle outdated --strict',
path => $facts['path'],
}Slackbot
02/02/2023, 4:19 PMChughesvf
02/02/2023, 4:20 PMCVQuesty
02/02/2023, 4:21 PMSlackbot
02/02/2023, 4:48 PMYury Bushmelev
02/02/2023, 4:59 PMSlackbot
02/02/2023, 6:16 PMBrian Schonecker
02/02/2023, 6:18 PMhbui
02/02/2023, 6:38 PMhbui
02/02/2023, 6:43 PM$pam_version = "1.2.3"
package { ['pam.x86_64','pam.i686']:
ensure => $pam_version,
}
and then remember to check at patch time which version you want.
OR
you can write a fact that queries rpm for the version of pam.x86_64 and use that
package { 'pam.x86_64':
ensure => 'present',
}
package { 'pam.i686':
ensure => $facts['pam_version'],
}
(I'm going off memory so my syntax may not be 100%)Alonso Muñoz
02/02/2023, 6:51 PMSlackbot
02/02/2023, 7:29 PMnatemccurdy
02/02/2023, 7:42 PMnatemccurdy
02/02/2023, 7:46 PMnatemccurdy
02/02/2023, 7:47 PMSlackbot
02/03/2023, 2:10 AMSlackbot
02/03/2023, 2:48 PMcsharpsteen
02/03/2023, 2:58 PMLes Shiner
02/03/2023, 8:43 PM<http://Master.efkzvdxnvipepjklrporike02d.bx.internal.cloudapp.net:5432/puppetdb|Master.efkzvdxnvipepjklrporike02d.bx.internal.cloudapp.net:5432/puppetdb>
this is the address of my puppetdb.. shouldn't that port be 8080/8081? any clue on why it keeps writing it in as 5432?vchepkov
02/03/2023, 8:44 PMLes Shiner
02/03/2023, 8:44 PMLes Shiner
02/03/2023, 8:44 PM