Once again I appreciate your help @Andrew.
Since I'm running profiles/roles I did you what recommended and I also
added service { 'puppet' : ensure => 'running', enable => true, }
to my role in addition to my profile ...which seemed to really work and
makes me think the profile code wasn't working.
-peter
On Monday, May 23, 2022 at 5:44:16 PM UTC-4 [email protected] wrote:
> I'd be tempted to put a
> https://puppet.com/docs/puppet/5.5/types/notify.html into your code
> temporarily to ensure that it's being enforced.
> Try running `puppet resource service puppet ensure=running` in powershell
> and see if you can switch it on manually from there.
> Could there be some other agent or group policy that is shutting the
> puppet service down?
>
>
> On Mon, May 23, 2022 at 10:02 PM [email protected] <
> [email protected]> wrote:
>
>> Thank you!
>>
>> And instead I see:
>> C:\Windows\system32>puppet resource service puppet
>> service { 'puppet':
>> ensure => 'stopped',
>> enable => 'true',
>> logonaccount => 'LocalSystem',
>> provider => 'windows',
>> }
>>
>> so....my currrent code already has this:
>> 'windows': {
>> service { 'puppet' : ensure => 'running', enable => true, }
>> }
>> I'll run puppet with debug and see what's happening...but basically, it
>> doesn't seem like its saving the state.
>>
>> On Monday, May 23, 2022 at 3:17:03 PM UTC-4 [email protected] wrote:
>>
>>> Open a power shell window and run `puppet resource service puppet` you
>>> should see something like this;
>>> PS C:\Users\Administrator> puppet resource service puppet
>>> service { 'puppet':
>>> ensure => 'running',
>>> enable => 'true',
>>> logonaccount => 'LocalSystem',
>>> provider => 'windows',
>>> }
>>> This will tell you if the service is running.
>>>
>>> On Monday, May 23, 2022 at 6:32:29 PM UTC+1 [email protected]
>>> wrote:
>>>
>>>> My current puppet.conf:
>>>>
>>>> [main]
>>>> certname=windowscw.example.com
>>>> server=puppet
>>>> autoflush=true
>>>> manage_internal_file_permissions=false
>>>> environment=development
>>>> runinterval=1800
>>>>
>>>> On Monday, May 23, 2022 at 1:17:57 PM UTC-4 [email protected]
>>>> wrote:
>>>>
>>>>> I've been struggling to get puppet agent 7.12 to run by itself on
>>>>> windows 10. I'm watching for runs on the event viewer in Custom Views >
>>>>> Administrative Events.
>>>>> It seems that it will run dependably/independently if I
>>>>> 1) change the puppet.conf "runinterval=30m" to "runinterval=1800" AND
>>>>> 2) change Puppet Agent service to automatic AND
>>>>> 3) after I run it manually at least once.
>>>>>
>>>>> The problem is that I need it to run withOUT being run manually.
>>>>> Suggestions?
>>>>>
>>>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/puppet-users/c8c344f5-8cac-47ba-a521-bc051f09a4ccn%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/puppet-users/c8c344f5-8cac-47ba-a521-bc051f09a4ccn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> *Andrew Jones*
> Professional Services Engineer - EMEA
> Mobile: +44 7767 635247 <+447552991554>
> *Puppet. <http://puppet./> The shortest path to better software.*
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/20ad8a9d-95a3-4981-9f57-c0e5f9290a7fn%40googlegroups.com.