Skip to content

Instantly share code, notes, and snippets.

USER-SUPPLIED VALUES:
bucketCacheConfig: ""
bucketweb:
affinity: {}
args: []
autoscaling:
enabled: false
maxReplicas: ""
minReplicas: ""
targetCPU: ""
alertmanager:
enabled: false
clusterDomain: cluster.local
config:
api:
prometheus_http_prefix: /prometheus
response_compression_enabled: true
auth_enabled: false
blocks_storage:
backend: s3
#cloud-config
# vim: syntax=yaml
#
#
groups:
- myuser: [adm]
users:
- name: myuser
sudo: True
ssh_authorized_keys:
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello():
return "Hello World!"
@app.route('/<name>')
- name: fetch all servers id_rsa.pub file content
shell: cat ~/.ssh/id_rsa.pub
register: ssh_keys
- name: make sure all ssh keys are in authorized_keys
authorized_key:
user: root
key: "{{ item[0] }}"
delegate_to: "{{ item[1] }}"
with_nested:
[Unit]
Description=Prometheus Server
Documentation=https://prometheus.io/docs/introduction/overview/
After=network-online.target
[Service]
User=prometheus
Group=prometheus
#Restart=on-failure
TimeoutStartSec=1
import sys
def foo():
print "foo"
def bar():
print "bar"
if __name__ == "__main__":
REQUEST: [2017-06-14T13:27:27Z]
GET /v2/apps/b703cd8b-6fdf-46fe-a7fd-c8ecfd1cad12 HTTP/1.1
Host: api.cf.int.tieto.com
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Connection: close
Content-Type: application/json
User-Agent: go-cli 6.27.0+d26b32d.2017-06-08 / linux
bosh create-env bosh-deployment/bosh.yml \
--state=state.json \
--vars-store=creds.yml \
-o bosh-deployment/external-ip-with-registry-not-recommended.yml \
-o bosh-deployment/openstack/cpi.yml \
-v director_name=bosh-1 \
-v internal_cidr=192.168.1.0/24 \
-v internal_gw=192.168.1.1 \
-v internal_ip=192.168.1.6 \
-v auth_url=test \
add_api_key:
cmd.run:
- name: |
curl -s \
-X POST \
-k \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"type":"apikey","accountId":"1a1","name":"{{ api_account_name }}","description":null,"created":null,"kind":null,"removeTime":null,"removed":null,"uuid":null}' \
'https://{{ rancher_server }}/v1/apikey' > /root/api_key.json