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

ensure => absent doesn't seem to work #5

Open
TheCraiggers opened this issue Aug 5, 2015 · 3 comments
Open

ensure => absent doesn't seem to work #5

TheCraiggers opened this issue Aug 5, 2015 · 3 comments

Comments

@TheCraiggers
Copy link

Here's my puppet file:

    #Remove pagefile from the C drive
    pagefile { 'c:\pagefile.sys':
         ensure => absent,
     }

     #Add pagefile to the E drive
     pagefile { 'e:\pagefile.sys':
          ensure => present,
          systemmanaged => true,
     }

And here is the resulting resource on the Windows node:

pagefile { 'C:\pagefile.sys':
  ensure        => 'present',
  initialsize   => '0',
  maximumsize   => '0',
  systemmanaged => 'true',
}
pagefile { 'e:\pagefile.sys':
  ensure        => 'present',
  initialsize   => '0',
  maximumsize   => '0',
  systemmanaged => 'true',
}

What I'd expect to happen is Windows should delete the pagefile on the C: drive.

@TheCraiggers
Copy link
Author

This came up again today, and I thought I'd check in to see if you ever had any luck. I've looked at the code and don't see anything obvious... not that that is helpful information since I don't know Ruby that well. I also have no idea how I would begin to debug this.

@ptierno
Copy link
Owner

ptierno commented Aug 31, 2015

There is a pull request I haven't had the time to test but should fix the
problem. I'll try to get to it this week.
On Aug 31, 2015 4:38 PM, "TheCraiggers" notifications@github.com wrote:

This came up again today, and I thought I'd check in to see if you ever
had any luck. I've looked at the code and don't see anything obvious... not
that that is helpful information since I don't know Ruby that well. I also
have no idea how I would begin to debug this.


Reply to this email directly or view it on GitHub
#5 (comment)
.

@ptierno
Copy link
Owner

ptierno commented Jul 22, 2016

@TheCraiggers I apologize for the delay. I plan on putting some time into this next week to review and test PR #6 . It looks like a very promising fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants