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
directory '/srv/httpd/admins/html' do | |
recursive true | |
mode '0755' | |
end | |
template '/etc/httpd/conf.d/admins.conf' do | |
source 'conf.erb' | |
mode '0644' | |
variables(document_root: '/srv/httpd/admins/html',port: 8080) | |
notifies :restart, 'service[httpd]' |
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
version: '3' | |
services: | |
mongodb: | |
image: core/mongodb | |
command: --peer ${HOSTIP} | |
environment: | |
HAB_MONGODB: "[mongod.net]\nbind_ip = '0.0.0.0'\n[mongod.security]\ncluster_auth_mode = ''" | |
national-parks01: | |
image: MYORIGIN/national-parks:latest | |
command: --peer mongodb --strategy at-once --bind database:mongodb.default |
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
mongodb_database = "demo" | |
[server] | |
port = "8080" | |
shutdown-port = "8005" | |
redirect-port = "8443" | |
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
curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | sudo bash |
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
pkg_name=nodejs_demo | |
pkg_origin=myorigin | |
pkg_version="0.2.0" | |
pkg_scaffolding="core/scaffolding-node" | |
pkg_exports=( | |
[port]=app.port | |
) | |
pkg_exposes=(port) |
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
[css] | |
background_color = 'green' |
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
[status] | |
enabled = true |
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
[nodejs_demo] | |
plan_path = "nodejs_demo/habitat" |
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
pkg_name=national-parks | |
pkg_origin=myorigin | |
pkg_version="6.3.0" | |
pkg_maintainer="The Habitat Maintainers <[email protected]>" | |
pkg_license=("Apache-2.0") | |
pkg_deps=(core/tomcat8 core/jre8) | |
pkg_build_deps=(core/jdk8/8u131 core/maven) | |
pkg_svc_user="root" | |
do_prepare(){ export JAVA_HOME=$(hab pkg path core/jdk8) ; } | |
do_build() |
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
pkg_name=sample_profile | |
pkg_version=0.1.0 | |
pkg_origin=originname | |
pkg_deps=(chef/inspec) | |
pkg_build_deps=(chef/inspec core/jq-static) | |
pkg_svc_user=root | |
pkg_license=Apache-2.0 | |
do_before() { | |
# Exit with error if not in the directory with 'inspec.yml'. |