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
[root@master /srv/salt/containers/mongodb]$ docker run -p 27017:27017 -v /opt/storage:/data/db -d mongodb | |
83d6c907269a52a071d5bb6934aade62078ff7f491770572a3affd70abac270f | |
[root@master /srv/salt/containers/mongodb]$ docker exec -it silly_brown bash | |
[root@83d6c907269a /]# cd /data/db/ | |
[root@83d6c907269a db]# ll | |
total 0 |
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
[root@master /srv/salt]$ cat docker.sls | |
rpm -Uvh http://cbs.centos.org/kojifiles/packages/docker/1.4.1/2.el7/x86_64/docker-1.4.1-2.el7.x86_64.rpm: | |
cmd.run | |
docker: | |
pkg.installed: | |
- name: docker | |
service.running: | |
- name: docker |
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
CATTLE_API_UI_INDEX=http://cdn.rancher.io/ui/0.8.5/static/index.html | |
CATTLE_DB_CATTLE_MYSQL_HOST= | |
CATTLE_DB_CATTLE_MYSQL_PORT= | |
CATTLE_GRAPHITE_HOST= | |
CATTLE_GRAPHITE_PORT= | |
CATTLE_HOME=/var/lib/cattle | |
CATTLE_LOGBACK_OUTPUT_GELF_HOST= | |
CATTLE_LOGBACK_OUTPUT_GELF_PORT= | |
[BOOTSTRAP] Starting Cattle | |
[BOOTSTRAP] CATTLE_HOME=/var/lib/cattle |
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
#-------------------# | |
# rancher_agent.sls # | |
#-------------------# | |
# This is the end goal | |
#docker run --rm -it --privileged -v /var/run/docker.sock:/var/run/docker.sock rancher/agent http://192.168.200.42:8080: | |
# cmd.run | |
python-pip: | |
pkg.installed |
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
#!/usr/bin/env bash | |
IP=localhost | |
for INDEX in $(curl -s $IP:9200/_cat/indices?v | awk '{print $3}' | grep logstash-); do | |
curl -s -X GET $IP:9200/$INDEX/tripdata/_search?pretty -d ' | |
{ | |
"query": { | |
"bool": { | |
"must_not": [ | |
{ "match": { "MYFIELD": "352252060022408" } }, |
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
resource "template_file" "app" { | |
template = "${file("${path.module}/init.sh")}" | |
vars { | |
TERRAFORM_db_host = "${var.rds_master}" | |
TERRAFORM_db_user = "dfgdfg" | |
TERRAFORM_db_pass = "dfgdfg" | |
TERRAFORM_db = "sdfsdfsd" | |
} | |
} |
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
#!/bin/bash | |
# AUTHOR: Phil Porada and some of this https://gist.githubusercontent.com/erikaheidi/b217d927ee326075a854/raw/47e09ca519c323ff8705e380202b1269c654000c/le-renew-centos.sh | |
# phil-listdomains returns lines as follows | |
###### | |
# www.example.com | |
# dev.whatever.net | |
# test.fakedomain.org | |
for i in $(/bin/phil-listdomains); do |
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
$ terraform import module.ops.bitbucket_repository.repo salt | |
provider.bitbucket.password | |
Enter a value: MYSECRETPASSWORD | |
provider.bitbucket.username | |
Enter a value: MYBITBUCKETUSERNAME | |
module.ops.bitbucket_repository.repo: Importing from ID "salt"... | |
module.ops.bitbucket_repository.repo: Import complete! | |
Imported bitbucket_repository (ID: salt) |
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
[root@default-centos-7 ~]# ls -al /var/log/messages | |
-rw-------. 1 root root 397726 Jan 20 19:19 /var/log/messages | |
[root@default-centos-7 ~]# getfacl /var/log/messages | |
getfacl: Removing leading '/' from absolute path names | |
# file: var/log/messages | |
# owner: root | |
# group: root | |
user::rw- | |
group::--- |
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
#- hosts: test-kitchen | |
# vars: | |
# docker_compose_install: true | |
# docker_compose_version: 1.8.1 | |
# #docker_host_tcp: "tcp://0.0.0.0:2375" | |
# docker_host_unixsocket: | |
ExecStart=/usr/bin/docker daemon -H fd:// --bip={{ docker_bridge_ip_range }} --storage-driver={{ docker_storage_driver | default ('devicemapper') }} --log-driver={{ docker_logging_driver | default('json-file') }}{% if docker_host_tcp|default(None,true) %} -H {{ docker_host_tcp }}{% endif %}{% if docker_host_unixsocket|default(None,true) %} -H {{ docker_host_unixsocket }}{% endif %} |
OlderNewer