-
Notifications
You must be signed in to change notification settings - Fork 44
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
Error when installing puppet-agent on Ubuntu #166
Comments
This kind of issue is best solved in your local profiles and roles. We do something like this in our base profile. Class['profile::for::managing::apt'] ~> Class['apt::update'] -> Package<| |> |
Hmmm... I don't have a profile to manage apt, this error happens when I try to upgrade puppet to v4 as follows: # upgrade to puppet v4
class { '::puppet::profile::agent':
agent_version => 'latest',
allinone => true,
collection => 'PC1',
enabled => false,
manage_etc_facter => false,
manage_etc_facter_facts_d => false,
reports => false,
show_diff => true,
} What about something like this in ...
include ::apt
Class['apt::update'] -> Package<| |>
... In the meantime, I'll dig into our profiles and see if a better place makes sense for that relationship since its technically applicable for all packages and not just |
I was able to add these lines to a profile class and got it working # Ensure packages are installed after `apt-get update` is run
Class['apt::update'] -> Package<| |> I think we should still consider adding the lines above to |
Like i mentioned in my first comment that sort of thing is best done at the organisation level not the module level. |
@rendhalver whats the concern with defining that relationship? It wont duplicate resources and it makes the module more robust. If the concern is affecting other modules then what about this? Class['Apt::Update'] -> Package<|tag == 'puppet'|> on the package resources: package { "puppetlabs-release-${lc_collection_name}":
ensure => latest,
tag => 'puppet',
} |
apt-get update
is not running before the module tries to installpuppet-agent
I checked the apt module documentation examples, nothing stood out .
The text was updated successfully, but these errors were encountered: