Last active
March 22, 2017 10:30
-
-
Save kirillshevch/20fb515315b0cd041941b2767b2b9c87 to your computer and use it in GitHub Desktop.
Chef base role
This file contains hidden or 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
| { | |
| "name": "base", | |
| "description": "Base role", | |
| "json_class": "Chef::Role", | |
| "default_attributes": { | |
| "authorization": { | |
| "sudo": { | |
| "groups": [ | |
| "sysadmin" | |
| ], | |
| "users": [ | |
| "deployer" | |
| ], | |
| "passwordless": "false" | |
| } | |
| }, | |
| "users": [ | |
| "deployer" | |
| ], | |
| "nodejs": { | |
| "version": "0.12.18", | |
| "install_method": "package" | |
| }, | |
| "rvm": { | |
| "user_installs": [ | |
| { | |
| "user": "deployer", | |
| "default_ruby": "2.3.3", | |
| "rubies": [ | |
| "2.3.3" | |
| ] | |
| } | |
| ] | |
| }, | |
| "postgresql": { | |
| "version": "9.5", | |
| "enable_pgdg_apt": true, | |
| "use_pgdg_packages": true, | |
| "dir": "/etc/postgresql/9.5/main", | |
| "client": { | |
| "packages": ["postgresql-client-9.5", "libpq-dev"] | |
| }, | |
| "server": { | |
| "packages": ["postgresql-9.5"] | |
| }, | |
| "contrib": { | |
| "packages": ["postgresql-contrib-9.5"] | |
| }, | |
| "password": { | |
| "postgres": "$1$CU63hQbB$r7Ixz58Q4vbgnwgf003fi." | |
| }, | |
| "users": [ | |
| { | |
| "username": "deployer", | |
| "password": "$1$ut5HY53S$yMVOzameTGPNrlg1w7dsv.", | |
| "superuser": true, | |
| "replication": false, | |
| "createdb": true, | |
| "createrole": false, | |
| "inherit": true, | |
| "replication": false, | |
| "login": true | |
| } | |
| ] | |
| }, | |
| "firewall": { | |
| "rules": [ | |
| { | |
| "http": { | |
| "port": "80", | |
| "protocol": "tcp" | |
| }, | |
| "https": { | |
| "port": "443", | |
| "protocol": "tcp" | |
| }, | |
| "monit": { | |
| "port": "2812", | |
| "protocol": "tcp" | |
| }, | |
| "redis": { | |
| "port": "6379", | |
| "protocol": "tcp" | |
| } | |
| } | |
| ] | |
| }, | |
| "monit": { | |
| "mail_alerts": false, | |
| "web_interface": { | |
| "enable": true, | |
| "port": 2812, | |
| "address": false, | |
| "allow": [ | |
| "admin:2rG8b99N" | |
| ] | |
| } | |
| }, | |
| "nginx": { | |
| "version": "1.11.10", | |
| "default_site_enabled": false, | |
| "source": { | |
| "modules": [ | |
| "nginx::http_gzip_static_module", | |
| "nginx::http_ssl_module", | |
| "nginx::http_v2_module" | |
| ], | |
| "checksum": "778b3cabb07633f754cd9dee32fc8e22582bce22bfa407be76a806abd935533d" | |
| } | |
| }, | |
| "openssh": { | |
| "server": { | |
| "allow_agent_forwarding": "yes", | |
| "allow_tcp_forwarding": "no", | |
| "login_grace_time": "30s", | |
| "password_authentication": "no", | |
| "permit_root_login": "no", | |
| "rsa_authentication": "no" | |
| } | |
| } | |
| }, | |
| "run_list": [ | |
| "recipe[chef-solo-search]", | |
| "recipe[users::sysadmins]", | |
| "recipe[sudo]", | |
| "recipe[openssh]", | |
| "recipe[firewall::default]", | |
| "recipe[ufw]", | |
| "recipe[nginx::source]", | |
| "recipe[postgresql::client]", | |
| "recipe[postgresql::server]", | |
| "recipe[postgresql::setup_users]", | |
| "recipe[rvm::user]", | |
| "recipe[nodejs]", | |
| "recipe[apt-packages]", | |
| "recipe[monit]", | |
| "recipe[redisio]", | |
| "recipe[redisio::enable]", | |
| "recipe[ncdu]" | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment