Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commmand wp turns with no output #19

Open
obicho opened this issue Mar 28, 2017 · 3 comments
Open

commmand wp turns with no output #19

obicho opened this issue Mar 28, 2017 · 3 comments

Comments

@obicho
Copy link

obicho commented Mar 28, 2017

After installing the formula, I can't find the WP installation anywhere.
When I try to run

/usr/local/bin/wp

It simply returns without no output

I can't quote figure out what the error is.

I did get the message that install was successful

Summary for mini15

Succeeded: 11 (changed=7)
Failed: 0

Total states run: 11
Total run time: 28.907 s

@russellballestrini
Copy link

russellballestrini commented Jul 11, 2018

Ok first of all, this is a defect in the documentation. The Readme does not show that you need the following, in your pillar:

wordpress:
  cli:
    source: https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
    hash: 2906a669a28d2a344da88c63c96aff3c

Once you correct this issue, the cmd.run states will fail because the wordpress CLI should run as the webserver user, not root.

This is due to SaltStack removing user in favor of runas.

Reference: https://docs.saltstack.com/en/2017.7/ref/states/all/salt.states.cmd.html#salt.states.cmd.run

@aboe76
Copy link
Member

aboe76 commented Jul 11, 2018

@russellballestrini can you create a PR?

@russellballestrini
Copy link

@aboe76 and @obicho I have created PR #21 in an attempt to resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants