Skip to content

Instantly share code, notes, and snippets.

@szicari-cars
Created November 8, 2013 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save szicari-cars/16e0d436c0babed9a174 to your computer and use it in GitHub Desktop.
Save szicari-cars/16e0d436c0babed9a174 to your computer and use it in GitHub Desktop.
include:
- apache
package-building-packages:
pkg.installed:
- names:
- reprepro
- dpkg-sig
- dupload
- pbuilder
- debootstrap
- devscripts
- require:
- sls: apache
apache-repo-config:
file.managed:
- name: /etc/apache2/conf.d/repos
- source: salt://dpkg/apache/repos.conf
- require:
- pkg: package-building-packages
dpkg-root-dir:
file.directory:
- name: {{ pillar['dpkg']['repo_root'] }}
- require:
- file: apache-repo-config
dpkg-apt-dir:
file.directory:
- name: {{ pillar['dpkg']['repo_root'] }}/apt
- require:
- file: dpkg-root-dir
dpkg-apt-debian-dir:
file.directory:
- name: {{ pillar['dpkg']['repo_root'] }}/apt/debian
- require:
- file: dpkg-apt-dir
extend:
apache-server:
service.running:
- watch:
- file: apache-repo-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment