Skip to content
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

(#14308) Add ensure=>absent for define resource. #52

Merged
merged 1 commit into from
May 4, 2012

Conversation

nanliu
Copy link

@nanliu nanliu commented May 4, 2012

Several apt::* define resource type does not support ensurable. This
update allows ensure=>absent to support the removal of these
configuration files.

  • apt::conf
  • apt::pin
  • apt::source

Several apt::* define resource type does not support ensurable. This
update allows ensure=>absent to support the removal of these
configuration files.

* apt::conf
* apt::pin
* apt::source
@branan
Copy link

branan commented May 4, 2012

I can confirm that the rspec runs.

@@ -32,7 +33,7 @@
content => template("${module_name}/source.list.erb"),
}

if $pin != false {
if ($pin != false) and ($ensure == 'present') {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks weird since we won't remove a pin on $ensure=='absent', but I've confirmed that apt doesn't seem to care.

branan added a commit that referenced this pull request May 4, 2012
(#14308) Add ensure=>absent for define resource.
@branan branan merged commit a840dd8 into puppetlabs:master May 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants