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
jcigar@dev:/var/service/ > sudo pkg check -aB Checking all packages: 41% | |
(mapserver-6.4.1_4) /usr/local/bin/mapserv - required shared library libfcgi.so.0 not found | |
Checking all packages: 94% | |
pkg: fstat() failed for(/usr/local/apache-tomcat-7.0/temp/safeToDelete.tmp): No such file or directory | |
Checking all packages: 100% | |
jcigar@dev:/var/service/ > sudo pkg check -ad | |
Checking all packages: 100% | |
jcigar@dev:/var/service/ > sudo pkg check -ar | |
Checking all packages: 100% | |
jcigar@dev:/var/service/ > sudo pkg check -as |
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
I have the following error: | |
2015-05-13 16:55:23,182 [salt.loaded.int.module.cmdmod ][INFO ] Executing command 'gem list bundler' as user 'www-fada' in directory '/' | |
2015-05-13 16:55:23,269 [salt.state ][ERROR ] An exception occurred in this state: Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/site-packages/salt/state.py", line 1542, in call | |
**cdata['kwargs']) | |
File "/usr/local/lib/python2.7/site-packages/salt/states/gem.py", line 96, in installed | |
gems = __salt__['gem.list'](name, ruby, runas=user) | |
File "/usr/local/lib/python2.7/site-packages/salt/modules/gem.py", line 162, in list_ | |
ruby, runas=runas) | |
File "/usr/local/lib/python2.7/site-packages/salt/modules/gem.py", line 25, in _gem |
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
{% set args = salt['pillar.get']('venvs:ruby:{}'.format(venv)) %} | |
{% set is18 = args.ruby_version.startswith('1.8') %} | |
{% set rbenv_root = '/usr/local/venvs/{}/rbenv'.format(venv) %} | |
include: | |
- users.webapps.{{ args.user }} | |
- pkgs.rbenv | |
{{ venv }}: | |
cmd.run: |
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
{% set args = salt['pillar.get']('venvs:ruby:{}'.format(venv)) %} | |
{% set is18 = args.ruby_version.startswith('1.8') %} | |
{% set rbenv_root = '/usr/local/venvs/{}/rbenv'.format(venv) %} | |
include: | |
- users.webapps.{{ args.user }} | |
- pkgs.rbenv | |
{{ venv }}: | |
cmd.run: |
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
{% import "venvs/macros.jinja" as macros %} | |
{% set args = salt['pillar.get']('venvs:python:{}'.format(venv)) %} | |
{% set venv_root = '/usr/local/venvs/{}'.format(venv) %} | |
include: | |
- users.webapps.{{ args.user }} | |
- pkgs.python | |
- pkgs.pgsql-client | |
{{ macros.venv_dir(venv, venv_root, user=args.user, group=args.user) }} |
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
jcigar@dev:/usr/local/etc/salt/states/venvs/python/ > cat _template.sls | |
{% import 'venvs/macros.jinja' as macros %} | |
{% set args = salt['pillar.get']('venvs:python:{}'.format(venv)) %} | |
{% set venv_base = salt['pillar.get']('venvs:lookup:base') %} | |
{% set venv_full = '{}/{}'.format(venv_base, venv) %} | |
include: | |
- users.webapps.{{ args.user }} | |
- pkgs.python |
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
jcigar@dev:/usr/local/etc/salt/states/venvs/python/ > pwd | |
/usr/local/etc/salt/states/venvs/python | |
jcigar@dev:/usr/local/etc/salt/states/venvs/python/ > cat init.sls | |
include: | |
- .alienalert | |
- .bbpf | |
- .harmonia | |
- .formidabel | |
- .biodiversa |
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
jcigar@dev:/usr/local/etc/salt/pillar/venvs/ > cat init.sls | |
venvs: | |
lookup: | |
base: /usr/local/venvs | |
include: | |
- venvs.python | |
- venvs.ruby | |
jcigar@dev:/usr/local/etc/salt/pillar/venvs/ > cat python.sls |
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
git_accept_self_signed_env: | |
environ.setenv: | |
- name: "GIT_SSL_NO_VERIFY" | |
- value: "true" | |
{% for r, v in salt['pillar.get']('repos:webapps:items').items() %} | |
{% set cfg = salt['pillar.get']('repos:webapps:lookup') %} | |
{% set repo = salt['pillar.get']('repos:lookup:{}'.format(v.use_repo|default(cfg.default_repo))) %} | |
{% set dst = v.dst if v.dst is defined and v.dst.startswith('/') else '{}/{}'.format(cfg.dst, v.dst|default(r)) %} |
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
jcigar@dev:/usr/local/etc/salt/pillar/venvs/ > cat python.sls | |
venvs: | |
python: | |
harmonia: | |
python_version: 2.7 | |
user: www-ias | |
alienalert: | |
python_version: 3.4 | |
user: www-iasaa | |
bbpf: |