Beginner: Cannot find class from a very basic manifest.

31 views
Skip to first unread message

Kevin Stasko

unread,
Jun 9, 2014, 1:16:41 PM6/9/14
to puppet...@googlegroups.com
I'm very new to puppet so this is probably going to be the most trivial thing but I've been working on this problem for way too long.

I'm creating a Virtual Machine and am using puppet to ensure the four programs that I need installed are there every time I boot up the VM. These four programs are SQL, PHP, Apache and Drush. The first three had little to no issue being installed but Drush is presenting problems. Every time I try to include the program within my manifest puppet returns...
'Error: Could not find class drush for location [localhost] on node [mycomputer]' 

Like I said my manifest right now is just trying to get the VM running so it looks something like this...(imagine there are tabs where it needs to be)

node default{
#SETUP
##SQL Install 
package {mysql: ensure=>installed}

##PHP Install 
package {php: ensure=>installed}

##Apache Install
package {apache: ensure=>installed}

##Drush Install
include drush
}       

The drush module I'm using comes from  https://github.com/puphpet/puppet-drush which may be the problem but it's really the only module available for this program that is up to date. To clarify I've created a directory with 'drush' as it's name and am running this all on Windows 8.1 (I don't know if there are compatibility issues or not) 
I've tried using every method I could find to install this but I get the same error. Any help or guidance is very much appreciated!
Thanks for your time!

Garrett Honeycutt

unread,
Jun 9, 2014, 1:40:56 PM6/9/14
to puppet...@googlegroups.com
Hi Kevin,

This indicates that the code is not in the modulepath. Look at the
results from `puppet config print modulepath` and check that at least
one of the returned path's has your module present.

$modulepath/drush/manifests/init.pp must exist.

likely you have $modulepath/puppet-drush or a simple permissions issue.

Best regards,
-g

--
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile: +1.206.414.8658
Reply all
Reply to author
Forward
0 new messages