-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support global configuration file #759
Comments
Ticketed as https://tickets.puppetlabs.com/browse/BOLT-821. We believe there should be a |
Sure! :) Is there a planned timeline? |
No timeline yet. We tend to only prioritize a week or two in advance, and this hasn't bubbled up on our team's priority compared to other work. However I'd be happy to support someone else taking it on. |
Hey, is there any update on this? We're still really interested in this feature! :) |
Current workaround: site/bolt/lib/facter/users.rb: # frozen_string_literal: true
Facter.add('users') do
setcode do
Dir.chdir('/home/') do
Dir.glob('*').select { |f| File.directory? f }
end
end site/bolt/manifests/config.pp: # Class: bolt::config
class bolt::config (
) {
$::users.each |$user| {
file { "/home/${user}/.puppetlabs":
ensure => directory,
tag => $user,
}
vcsrepo { "/home/${user}/.puppetlabs/bolt/":
ensure => latest,
source => 'https://git.example.com/bolt/control.git',
user => $user,
owner => $user,
group => $user,
provider => 'git',
revision => 'master',
tag => $user,
}
~> exec { "bolt-puppetfile-install-${user}":
command => '/usr/local/bin/bolt puppetfile install',
environment => [ "HOME=/home/${user}", ],
user => $user,
group => $user,
refreshonly => true,
tag => $user,
}
}
|
This patch adds config files to specify default values for individual users (puppetlabs#608, puppetlabs#1438) and system-wide (puppetlabs#759, puppetlabs#1438).
This patch adds config files to specify default values for individual users (puppetlabs#608, puppetlabs#1438) and system-wide (puppetlabs#759, puppetlabs#1438).
This was resolved by #1557 |
Hey @lucywyman, we‘ve just landed back home in Berlin after 3 days in Ghent and I found a Github notification mail in my inbox telling me you‘ve implemented this feature. In that moment the airline played a fanfare celebrating the landing :D Just matched perfectly! :) Thank you for adding yet another awesome feature to Bolt! :) |
Hahaha that's awesome!! I think our global config is in a slightly different place than the one specified here, but let us know if you have any other issues or feature requests. And welcome home! |
We want to use
bolt
on our Jumphosts which we share within our team. For this, it is essential for us to use a shared configuration so everybody is using the same configuration (especially for Analytics).In my opinion the configuration folder should be located at
/etc/puppetlabs/bolt/
The text was updated successfully, but these errors were encountered: