devopera / puppet-docsf

ConfigServer-Firewall puppet config
Other
3 stars 4 forks source link

Can not install puppet-docsf (downloaded from git) #3

Open e-it opened 8 years ago

e-it commented 8 years ago

Hello,

unfortunately I'm getting this error-message when I try to use the CSF module:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class docsf for example.com on node example.com .
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

This is the tree of the module in module path (/etc/puppet/environments/production/modules) for foreman:

docsf/
├── lib
│   └── facter
│       └── configserver_firewall.rb
├── LICENSE
├── manifests
│   ├── init.pp
│   ├── params.pp
│   ├── postinit.pp
│   └── preinit.pp
├── metadata.json
├── README.md
├── spec
│   └── spec_helper.rb
├── templates
│   ├── conf.maldet.erb
│   ├── csf.allow.erb
│   ├── csf.conf.erb
│   ├── csf.fignore.erb
│   ├── csf.ignore.erb
│   └── csf.pignore.erb
└── tests
    └── init.pp

This is the tree with permissions and users/groups:

[root@puppet modules]# tree -p -u -g docsf/
docsf/
├── [drwxr-xr-x puppet   root    ]  lib
│   └── [drwxr-xr-x puppet   root    ]  facter
│       └── [-rw-r--r-- puppet   root    ]  configserver_firewall.rb
├── [-rw-r--r-- puppet   root    ]  LICENSE
├── [drwxr-xr-x puppet   root    ]  manifests
│   ├── [-rw-r--r-- puppet   root    ]  init.pp
│   ├── [-rw-r--r-- puppet   root    ]  params.pp
│   ├── [-rw-r--r-- puppet   root    ]  postinit.pp
│   └── [-rw-r--r-- puppet   root    ]  preinit.pp
├── [-rw-r--r-- puppet   root    ]  metadata.json
├── [-rw-r--r-- puppet   root    ]  README.md
├── [drwxr-xr-x puppet   root    ]  spec
│   └── [-rw-r--r-- puppet   root    ]  spec_helper.rb
├── [drwxr-xr-x puppet   root    ]  templates
│   ├── [-rw-r--r-- puppet   root    ]  conf.maldet.erb
│   ├── [-rw-r--r-- puppet   root    ]  csf.allow.erb
│   ├── [-rw-r--r-- puppet   root    ]  csf.conf.erb
│   ├── [-rw-r--r-- puppet   root    ]  csf.fignore.erb
│   ├── [-rw-r--r-- puppet   root    ]  csf.ignore.erb
│   └── [-rw-r--r-- puppet   root    ]  csf.pignore.erb
└── [drwxr-xr-x puppet   root    ]  tests
    └── [-rw-r--r-- puppet   root    ]  init.pp
cleverlight commented 8 years ago

I've had something similar when file permissions or selinux were misconfigured, so that puppet couldn't read the module's files from the filesystem.

On Tue, 12 Apr 2016, 11:20 SPQRInc, notifications@github.com wrote:

Hello,

unfortunately I'm getting this error-message when I try to use the CSF module:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class docsf for example.com on node example.com . Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

This is the tree of the module in module path ( /etc/puppet/environments/production/modules) for foreman:

docsf/ ├── lib │ └── facter │ └── configserver_firewall.rb ├── LICENSE ├── manifests │ ├── init.pp │ ├── params.pp │ ├── postinit.pp │ └── preinit.pp ├── metadata.json ├── README.md ├── spec │ └── spec_helper.rb ├── templates │ ├── conf.maldet.erb │ ├── csf.allow.erb │ ├── csf.conf.erb │ ├── csf.fignore.erb │ ├── csf.ignore.erb │ └── csf.pignore.erb └── tests └── init.pp

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/devopera/puppet-docsf/issues/3

e-it commented 8 years ago

Hello,

hm - I dont know if that will help. All other modules configured on this machine are working fine.

What did you change exactly?

cleverlight commented 8 years ago

Hi! I found that when I'd used git to clone the module into my folder, I'd not set up the sticky bit and acl properly, so my docsf module wasn't readable by puppet. I manually fixed those permissions using chmod, chcon and semanage and then restarted puppet server.

On Tue, 12 Apr 2016, 11:43 SPQRInc, notifications@github.com wrote:

Hello,

hm - I dont know if that will help. All other modules configured on this machine are working fine.

What did you change exactly?

— You are receiving this because you commented.

Reply to this email directly or view it on GitHub https://github.com/devopera/puppet-docsf/issues/3#issuecomment-208841462

e-it commented 8 years ago

Hello,

I tried to change the files in manifests performing chmod -c 0644 but it did not work. Could you explain which files you edited with chmod (also 0644?), chcon and semanage?

I would be really happy about any help :-) Thanks a lot in advance.

cleverlight commented 8 years ago

Sorry no. You need to ensure a consistent set of file ownership and permissions. The easiest way if you've already got working modules is to look for differences. An ls -la, or ls -laZ if you're using selinux, should show you the inconsistencies.

On Tue, 12 Apr 2016, 12:17 SPQRInc, notifications@github.com wrote:

Hello,

I tried to change the files in manifests performing chmod -c 0644 but it did not work. Could you explain which files you edited with chmod (also 0644?), chcon and semanage?

I would be really happy about any help :-) Thanks a lot in advance.

— You are receiving this because you commented.

Reply to this email directly or view it on GitHub https://github.com/devopera/puppet-docsf/issues/3#issuecomment-208851745

e-it commented 8 years ago

Solved it by cloning the working version from forge.puppetlabs.com and replacing the contents ;-)