[Puppet Users] Re: Windows Firewall Question

2013-03-05 Thread david . hartog
Hi Adam,
 
I would be interested in seeing an example of a firewall config managed by 
the registry module. Is that possible?
 
Thanks,
David.

On Friday, February 15, 2013 5:13:04 AM UTC, ad wrote:

> Hey Jim,
>
> As someone who generally hates using execs unless I absolutely have to, I 
> would recommend using the Puppet Labs registry module. I can dig out some 
> examples tomorrow if you like.
>
> Adam
>
> On Thursday, February 14, 2013 9:29:52 AM UTC-6, jim wrote:
>>
>> Hello all,
>>
>> I'm currently running 2.7.19 (Puppet Enterprise 2.7.0)
>>
>> I want to use puppet to add / amend or delete windows firewall rules, is 
>> there a tidy way of doing this 
>>
>> exec { "Check_MK_Firewall_Rule_create":
>> command => 'C:\Windows\System32\netsh.exe advfirewall firewall add rule 
>> name="Check_MK" dir=in action=allow protocol=TCP localport=6556',
>> unless => 'C:\Windows\System32\netsh.exe advfirewall firewall show rule 
>> name="Check_MK"',
>> }
>>
>> ## If I remove the unless statement, it will keep add the same rule over 
>> and over again, which will make the firewall rule list un-manageable
>>
>>
>> exec { "Check_MK_Firewall_Rule_enable":
>> command => 'C:\Windows\System32\netsh.exe advfirewall firewall set rule 
>> name="Check_MK" new enable=Yes',
>> }
>>
>> ## When I do a puppet run it keeps running this, is there a way to only 
>> run if disabled ???
>>
>> Hope this make sense
>>
>> regards
>>
>> James
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Puppet to copy file instead of symlink

2013-03-05 Thread david . hartog
hi,
I want to have puppet copy a file, but I can only reference the file within 
the puppet configuration from the symlink. Have tried file => true and 
other options but puppet only copies the symlink. Is this possible?
many thanks,
David.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: How to puppetise Task Scheduler on Windows

2013-02-20 Thread david . hartog
Thanks for the link.
 
The basic puppet options don't cover enough of the task options - but they 
are available in an xml (as exported from Task Scheduler). Do you know if 
there is an option to have a task from an exported xml file on puppet (or 
how to request it)?
 
Thanks,
David.

On Wednesday, February 13, 2013 11:11:23 AM UTC, Paul Tötterman wrote:

> Hi David,
>
> Is it possible to manage Task Scheduler through puppet?
>
>
> Yes: http://docs.puppetlabs.com/references/latest/type.html#scheduledtask
>
> Cheers,
> Paul
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] How to puppetise Task Scheduler on Windows

2013-02-13 Thread david . hartog
Hi all,
I have puppet running well, and for the Windows servers in our environment 
it manages files, contents and services. Is it possible to manage Task 
Scheduler through puppet?
The task is in xml format (an export from an existing task), which puppet 
can ensure exists in a directory somewhere. However, I cannot find a way 
of having Puppet import the xml into the Scheduler itself and confirm it is 
running. Does anyone know if this is possible?
Many thanks,
David H.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.