Re: [Puppet Users] failed to set mode 0777

2022-11-24 Thread 'Dirk Heinrichs' via Puppet Users
Am Donnerstag, dem 24.11.2022 um 09:05 -0800 schrieb Mike:

/home/mypcsupport/.puppetlabs/etc/puppet/ssl: Operation not permitted

This is not a Puppet problem. Any chance you're trying to operate on a network 
filesystem, or one that is mounted read-only?

I.o.w.: You need to fix that "Operation not permitted" error in your 
environment. It usually means that the underlying filesystem doesn't allow what 
you're trying to do.

HTH...

Dirk

--

Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Phone: +49 2226 15966 18
Email: dhein...@opentext.com
Website: 
www.recommind.de
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/525f8c7e6efcf21119e10404a669f7edccb47769.camel%40opentext.com.


[Puppet Users] failed to set mode 0777

2022-11-24 Thread Mike
Hi,

Any ideas on this?  Maybe I should attempt to re-install this again.  Is 
there any documented installation process for puppet on ubuntu?  I've tried 
various ways and always end up with different issues.

Thanks

Mike


:/etc$ puppet device --verbose --target cisco.device.puppetlabs.net

Error: failed to set mode 0777 on 
/home/mypcsupport/.puppetlabs/etc/puppet/ssl: Operation not permitted @ 
apply2files - /home/mypcsupport/.puppetlabs/etc/puppet/ssl
Error: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl]/mode: change 
from '0777' to '0771' failed: failed to set mode 0777 on 
/home/mypcsupport/.puppetlabs/etc/puppet/ssl: Operation not permitted @ 
apply2files - /home/mypcsupport/.puppetlabs/etc/puppet/ssl
Notice: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/certs]: 
Dependency File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl] has failures: 
true
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/certs]: 
Skipping because of failed dependencies
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/public_keys]: 
Skipping because of failed dependencies
Warning: 
/File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/certificate_requests]: 
Skipping because of failed dependencies
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/private_keys]: 
Skipping because of failed dependencies
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/private]: 
Skipping because of failed dependencies
Warning: 
/File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/certs/puppetserver.example.com.pem]:
 
Skipping because of failed dependencies
Warning: 
/File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/private_keys/puppetserver.example.com.pem]:
 
Skipping because of failed dependencies
Warning: 
/File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/public_keys/puppetserver.example.com.pem]:
 
Skipping because of failed dependencies
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/certs/ca.pem]: 
Skipping because of failed dependencies
Warning: /File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl/crl.pem]: 
Skipping because of failed dependencies
Error: Could not set 'directory' on ensure: Permission denied @ dir_s_mkdir 
- /home/mypcsupport/.puppetlabs/etc/puppet/devices
Error: Could not set 'directory' on ensure: Permission denied @ dir_s_mkdir 
- /home/mypcsupport/.puppetlabs/etc/puppet/devices
Wrapped exception:
Permission denied @ dir_s_mkdir - 
/home/mypcsupport/.puppetlabs/etc/puppet/devices
Error: /File[/home/mypcsupport/.puppetlabs/etc/puppet/devices]/ensure: 
change from 'absent' to 'directory' failed: Could not set 'directory' on 
ensure: Permission denied @ dir_s_mkdir - 
/home/mypcsupport/.puppetlabs/etc/puppet/devices
Error: Could not prepare for execution: Got 2 failure(s) while 
initializing: File[/home/mypcsupport/.puppetlabs/etc/puppet/ssl]: change 
from '0777' to '0771' failed: failed to set mode 0777 on 
/home/mypcsupport/.puppetlabs/etc/puppet/ssl: Operation not permitted @ 
apply2files - /home/mypcsupport/.puppetlabs/etc/puppet/ssl; 
File[/home/mypcsupport/.puppetlabs/etc/puppet/devices]: change from 
'absent' to 'directory' failed: Could not set 'directory' on ensure: 
Permission denied @ dir_s_mkdir - 
/home/mypcsupport/.puppetlabs/etc/puppet/devices

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/183e218a-d911-47da-9ec3-bff7517bdfbfn%40googlegroups.com.


Re: [Puppet Users] Error: Could not run: cannot load such file -- net/ssh/telnet

2022-11-24 Thread Mike
Thanks Martin.  I have run into different issues unfortunately and I appear 
to be miles away from this point now.  I'll start a new conversation.

On Thursday, 17 November 2022 at 15:16:35 UTC Martin Alfke wrote:

> Hi,
>
> Your puppet agent is missing a ruby gem:
> https://rubygems.org/gems/net-ssh-telnet
>
> This gem must be installed using the puppet ruby gem command:
>
> /opt/puppetlabs/puppet/bin/gem install net-ssh-telnet
>
> Hth,
> Martin
>
>
> On 15. Nov 2022, at 10:53, Mike  wrote:
>
> Hi,
>
> I've come across the in subject error when trying to run puppet against a 
> cisco device.  I've exhausted my knowledge to troubleshoot this issue.  Any 
> pointers or place to check would be appreciated.  Thanks
>
>
> $ puppet device --verbose --target cisco_device.puppetlabs.net
>
> Info: Retrieving pluginfacts
> Info: Retrieving plugin
> Info: Retrieving locales
> Error: Could not run: cannot load such file -- net/ssh/telnet
>  
>
> $ Contents of device.conf
>
> [cisco_device.puppetlabs.net]
> type cisco_ios
> url file:///etc/puppetlabs/puppet/cisco_device.puppetlabs.net.yaml
>
>
> $ Contents of cisco_device.puppetlabs.net.yaml
>
> "address": "192.168.192.119"
> "port": 22
> "username": "cisco"
> "password": "cisco"
> "enable_password": ""
>
> -- 
> 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...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/5d0f88f6-cbfa-4193-b692-ab18a8e8673en%40googlegroups.com
>  
> 
> .
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/663820e0-574f-4643-9326-052ee9471108n%40googlegroups.com.