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

Manage homu service with Salt. #38

Merged
merged 1 commit into from Jun 9, 2015
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -3,6 +3,8 @@ https://github.com/barosl/homu:
- rev: 6796bb1fd14fa87dbafcd2b0e467a6c950f53aa9
- target: /home/servo/homu
- user: servo
- require_in:
- pip: install_homu

/home/servo/homu/cfg.toml:
file.managed:
@@ -11,6 +13,36 @@ https://github.com/barosl/homu:
- user: servo
- group: servo
- mode: 644
- require_in:
- service: homu
- watch_in:
- service: homu

# TODO: add rules to launch the service
/home/servo/homu/_venv:
virtualenv.managed:
- system_site_packages: False
- require_in:
- pip: install_homu

install_homu:
pip.installed:
- bin_env: /home/servo/homu/_venv
- editable: /home/servo/homu

homu:
service:
- running
- enable: True
- require:
- pip: install_homu

/etc/init/homu.conf
file.managed:
- source: salt://homu/homu.conf
- user: root
- group: root
- mode: 644
- require_in:
- service: homu
- watch_in:
- service: homu
@@ -0,0 +1,9 @@
exec /home/servo/homu/_venv/bin/homu

setuid servo
setgid servo

start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [016]

env HOME=/home/servo
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.