[jodewey:~/git/ansible-etcd] master(+20/-20)+ ± molecule login --host etcd-01
[root@63be8a0b63c9 /]# etcdctl --endpoints 172.17.0.3:2379,172.17.0.2:2379,172.1
9198227ac1a2c055: name=etcd-02 peerURLs=http://172.17.0.3:2380 clientURLs=http://172.17.0.3:2379 isLeader=true
983274ac8c0149ec: name=etcd-01 peerURLs=http://172.17.0.2:2380 clientURLs=http://172.17.0.2:2379 isLeader=false
ab3fbede047aa1ac: name=etcd-03 peerURLs=http://172.17.0.4:2380 clientURLs=http://172.17.0.4:2379 isLeader=false
[root@63be8a0b63c9 /]# etcdctl --endpoints 172.17.0.3:2379,172.17.0.2:2379,172.17.0.4:2379 set /foo bar
bar
[root@63be8a0b63c9 /]# etcdctl --endpoints 172.17.0.3:2379,172.17.0.2:2379,172.17.0.4:2379 get /foo
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
FROM alpine:latest | |
ARG SOME_SECRET_SHIZ | |
RUN echo $SOME_SECRET_SHIZ > /tmp/secret | |
# Do something | |
RUN rm -f /tmp/secret |
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
[jodewey:~/git/molecule_2/test/scenarios/driver/openstack] [molecule2-env-2.7.13] openstack+ ± molecule list | |
Instance Name Driver Name Provisioner Name Scenario Name Created Converged | |
--------------------- ------------- ------------------ --------------- --------- ----------- | |
instance-1-default Openstack Ansible default False False | |
instance-1-multi-node Openstack Ansible multi-node False False | |
instance-2-multi-node Openstack Ansible multi-node False False |
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
import logging | |
import os | |
import sys | |
import colorama | |
import sh | |
colorama.init(autoreset=True) | |
SUCCESS = 100 |
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
# Copyright (c) 2015-2016 Cisco Systems, Inc. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to | |
# deal in the Software without restriction, including without limitation the | |
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
# sell copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in |
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
[vagrant@k8s-01 ~]$ kubectl get pods --namespace kolla | |
NAME READY STATUS RESTARTS AGE | |
cinder-api-1293873119-sscmr 2/2 Running 0 32m | |
cinder-scheduler-0 1/1 Running 0 32m | |
cinder-volume-5fznz 1/1 Running 0 32m | |
glance-api-2844635357-ndq43 1/1 Running 0 32m | |
glance-registry-1115551799-2gjx1 2/2 Running 0 32m | |
horizon-4073033154-0gf7h 1/1 Running 0 32m | |
iscsid-1qbcb 1/1 Running 0 28m | |
keystone-4221194371-5tfvd 1/1 Running 0 40m |
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
``` | |
[jodewey:~/git/ansible-etcd] master(+20/-20)+ ± molecule login --host etcd-01 | |
7.0.4:2379 member list etcdctl --endpoints 172.17.0.3:2379,172.17.0.2:2379,172.1 | |
9198227ac1a2c055: name=etcd-02 peerURLs=http://172.17.0.3:2380 clientURLs=http://172.17.0.3:2379 isLeader=true | |
983274ac8c0149ec: name=etcd-01 peerURLs=http://172.17.0.2:2380 clientURLs=http://172.17.0.2:2379 isLeader=false | |
ab3fbede047aa1ac: name=etcd-03 peerURLs=http://172.17.0.4:2380 clientURLs=http://172.17.0.4:2379 isLeader=false | |
[root@63be8a0b63c9 /]# | |
``` | |
``` |
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
import logging | |
import sys | |
import colorama | |
colorama.init(autoreset=True) | |
SUCCESS = 100 | |
NOTICE = 101 |
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: Copy files | |
command: rsync --delay-updates -F --compress --archive --no-owner --no-group --no-perms --out-format='<<CHANGED>>%i %n%L' /etc/{{ item }} {{ files_path }}/{{ item }} | |
register: rsync_out | |
changed_when: rsync_out.stdout|default("") | search("CHANGED") | |
failed_when: false | |
with_items: "{{ files }}" |
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
[jodewey:~/git/molecule_2/test/scenarios/driver/vagrant] 0452ba3(+0/-0)+ REBASING ± molecule create | |
--> Scenario: [default] | |
--> Provisioner: [ansible] | |
--> Playbook: [create.yml] | |
PLAY [localhost] *************************************************************** | |
TASK [setup] ******************************************************************* | |
ok: [localhost] |