Skip to content

Instantly share code, notes, and snippets.

@mbround18
Created August 7, 2017 05:46
Show Gist options
  • Save mbround18/55cb447954bc6ae86fe7ae3071a120f9 to your computer and use it in GitHub Desktop.
Save mbround18/55cb447954bc6ae86fe7ae3071a120f9 to your computer and use it in GitHub Desktop.
jenkins:
user.present:
- fullname: Jenkins
- shell: /bin/bash
- home: /home/jenkins
/home/jenkins/.bashrc:
file.managed:
- source: salt://defconf/bash_related/bashrc_base.conf
- mode: 644
- user: jenkins
npm_packages:
pkg.installed:
- pkgs:
- npm
- nodejs
postgres:
pkg.installed:
- pkgs:
- postgresql
- postgresql-server-dev-all
rbenv-deps:
pkg.installed:
- names:
- bash
- git
- openssl
- libssl-dev
- make
- curl
- autoconf
- bison
- build-essential
- libffi-dev
- libyaml-dev
- libreadline6-dev
- zlib1g-dev
- libncurses5-dev
ruby-2.4.1:
rbenv.installed:
- user: jenkins
- default: True
- require:
- pkg: rbenv-deps
jenkins_db_user:
postgres_user.present:
- name: jenkins
prod_db:
postgres_database.present:
- name: gdz_prod
- owner: jenkins
npm:
pkg.installed
n:
npm.installed:
- require:
- pkg: npm
run_node_installer:
cmd.run:
- name: n latest /
bower:
npm.installed:
- require:
- pkg: npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment