Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bluethundr/eb6ebfd5da5bfedbe45042b2cc992de7 to your computer and use it in GitHub Desktop.
Save bluethundr/eb6ebfd5da5bfedbe45042b2cc992de7 to your computer and use it in GitHub Desktop.
## I'm trying to rename a service in a salt state file so that it uses the Red Hat name for apache, but it fails
----------
ID: apache
Function: pkg.installed
Result: False
Comment: Error occurred installing package(s). Additional info follows:
errors:
- Running scope as unit run-19945.scope.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.clarkson.edu
* epel: mirror.sfo12.us.leaseweb.net
* extras: mirror.supremebytes.com
* updates: mirror.san.fastserv.com
No package apache available.
Error: Nothing to do
Started: 19:20:24.955209
Duration: 8084.84 ms
Changes:
----------
ID: apache
Function: service.running
Name: httpd
Result: False
Comment: One or more requisite failed: webserver.apache
Changes:
----------
ID: /var/www/index.html
Function: file.managed
Result: False
Comment: The following requisites were not found:
require:
pkg: httpd
Changes:
## config file webserver.sls
apache:
pkg.installed: []
service.running:
- name: httpd
- require:
- pkg: apache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment