-
-
Save pduersteler/a3d2144cb9d05f041ae2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mariadb/init.sls | |
mariadb: | |
pkg.installed: | |
- pkgs: | |
- mariadb-client | |
include: | |
- repos.mariadb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# repos/mariadb.sls | |
# prefixed with "repos." to not have key collisions. maybe | |
# this is a problem? | |
repos.mariadb: | |
pkgrepo.managed: | |
- humanname: MariaDB | |
- name: deb http://mirrors.n-ix.net/mariadb/repo/10.0/debian wheezy main | |
- dist: wheezy | |
- file: /etc/apt/sources.list.d/mariadb.list | |
- keyserver: keyserver.ubuntu.com | |
- keyid: '0xcbcb082a1bb943db' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mariadb/server.sls | |
mariadb.server: | |
pkg.installed: | |
- pkgs: | |
- mariadb-server | |
service.running: | |
- name: mysql | |
- enable: True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With the given init.sls, I get:
However, removing the "include" part, salt tries to set up the package but reports a fail as it has no repo to get it from: