Error with latest code base : Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type apache::htpasswd

126 views
Skip to first unread message

Sandip Shah

unread,
May 13, 2014, 3:39:09 PM5/13/14
to example42-pu...@googlegroups.com

Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type apache::htpasswd at /data/environments/production/modules/vendor/nagios/manifes-server-third-party-module.novalocal

Here is the code base from GIT:

class nagios::prerequisites {

  apache::htpasswd { 'nagiosadmin':
    crypt_password => $nagios::nagiosadmin_password,
    htpasswd_file  => $nagios::htpasswdfile,
  }

}


Here is my modulepath :

modulepath = /opt/puppet/share/puppet/modules:/data/environments/$environment/modules/rovi:/data/environments/$environment/modules/vendor:/data/environments/production/modules/vendor    pluginsync=true

and listing of : /data/environments/production/modules/vendor , as you can see it has apache module already there.

\[root@puppetmaster vendor]# pwd
/data/environments/production/modules/vendor
[root@puppetmaster vendor]# ls -ltr
total 144
drwxr-xr-x.  6 root root 4096 Feb 21 08:02 nagios
drwxr-xr-x.  5 root root 4096 May  9 22:03 nrpe
drwxr-xr-x.  4 root root 4096 May 13 19:27 java_ks
drwxr-xr-x.  5 root root 4096 May 13 19:27 splunk
drwxr-xr-x.  7 root root 4096 May 13 19:27 concat
drwxr-xr-x.  4 root root 4096 May 13 19:27 wget
drwxr-xr-x. 10 root root 4096 May 13 19:28 mysql
drwxr-xr-x.  5 root root 4096 May 13 19:28 firewall
drwxr-xr-x.  8 root root 4096 May 13 19:28 rsyslog
drwxr-xr-x.  5 root root 4096 May 13 19:28 perl
drwxr-xr-x.  5 root root 4096 May 13 19:28 datacat
drwxr-xr-x.  7 root root 4096 May 13 19:28 logrotate
drwxr-xr-x.  6 root root 4096 May 13 19:28 cassandra
drwxr-xr-x.  8 root root 4096 May 13 19:28 ssh
drwxr-xr-x.  6 root root 4096 May 13 19:28 artifactory
drwxr-xr-x.  5 root root 4096 May 13 19:28 munin
drwxr-xr-x.  3 root root 4096 May 13 19:28 s3file
drwxr-xr-x.  6 root root 4096 May 13 19:29 epel
drwxr-xr-x.  9 root root 4096 May 13 19:29 mongodb
drwxr-xr-x.  8 root root 4096 May 13 19:29 apache
drwxr-xr-x.  5 root root 4096 May 13 19:30 java
drwxr-xr-x.  4 root root 4096 May 13 19:30 solr
drwxr-xr-x.  8 root root 4096 May 13 19:30 sudo
drwxr-xr-x.  6 root root 4096 May 13 19:30 activemq
drwxr-xr-x.  6 root root 4096 May 13 19:30 puppetdbquery
drwxr-xr-x.  4 root root 4096 May 13 19:30 erlang
drwxr-xr-x.  7 root root 4096 May 13 19:31 memcached
drwxr-xr-x.  8 root root 4096 May 13 19:31 mcollective
drwxr-xr-x.  6 root root 4096 May 13 19:31 zookeeper
drwxr-xr-x.  6 root root 4096 May 13 19:31 ntp
drwxr-xr-x.  9 root root 4096 May 13 19:31 rabbitmq
drwxr-xr-x.  7 root root 4096 May 13 19:32 puppi
drwxr-xr-x.  5 root root 4096 May 13 19:33 nfs
drwxr-xr-x.  8 root root 4096 May 13 19:33 apt
drwxr-xr-x.  6 root root 4096 May 13 19:33 nginx
drwxr-xr-x.  6 root root 4096 May 13 19:34 stdlib

Alessandro Franceschi

unread,
May 13, 2014, 4:57:34 PM5/13/14
to example42-pu...@googlegroups.com
are you using example42' apache module?
--
You received this message because you are subscribed to the Google Groups "Example42 Puppet Modules" group.
To unsubscribe from this group and stop receiving emails from it, send an email to example42-puppet-m...@googlegroups.com.
To post to this group, send email to example42-pu...@googlegroups.com.
Visit this group at http://groups.google.com/group/example42-puppet-modules.
For more options, visit https://groups.google.com/d/optout.

Sandip Shah

unread,
May 13, 2014, 7:54:44 PM5/13/14
to example42-pu...@googlegroups.com
Thank you. I realized that and have added just the htpass.pp file to local repo. We already use standard apache module from forge so just added required file.

I am facing another problem : http:<host>/nagios returns 404. both httpd and nagios services are running. Any idea ?

Sandip

Alessandro Franceschi

unread,
May 15, 2014, 10:26:29 AM5/15/14
to example42-pu...@googlegroups.com
Probably the module or the package have not managed correctly the apache configuration file for nagios, where is set the /nagios alias and few other things.
Reply all
Reply to author
Forward
0 new messages