I am trying to use saltstack to provision a centos 6.7 system that has drupal and civicrm. I have civicrm as a tar ball that I extract into sites/all/modules
before trying to install. I am able to do all the provisioning without problem until I need to install civicrm with drush by running:
drush civicrm-install
This command works perfectly fine when I ssh into the target machine and execute it directly in the shell, but when the command is executed through saltstack I get this error message:
Command civicrm-install needs the following module(s) enabled to run: civicrm.
The drush command 'civicrm-install' could not be executed.
I have already tried clearing the drush cache using drush cc
, I have tried putting the command in a bash script and running the bash script from salt, and I have already placed civicrm.drush.inc
in ~/.drush
with no luck. Can somebody tell me what drush is missing from the environment in order to execute correctly?
[edit] More detail on what I have already tried for clarity.