Skip to content

Instantly share code, notes, and snippets.

View evrardjp's full-sized avatar

Jean-Philippe Evrard evrardjp

View GitHub Profile
@evrardjp
evrardjp / extravars (on top of your existing ones)
Last active February 21, 2019 07:32
Use SUSEified libvirt testing.
---
build_registry: "jevrard-osh.openstack.local:5000/"
developer_mode: "True"
suse_osh_deploy_libvirt_yaml_overrides:
images:
tags:
libvirt: "{{ build_registry }}openstackhelm/libvirt:latest-opensuse_15"
docker_images:
- context: libvirt
repository: "{{ build_registry }}openstackhelm/libvirt"
@evrardjp
evrardjp / osh-questions.txt
Last active October 12, 2018 21:27
osh-questions
Where to build and publish OSH images?
New repo or not? Under which governance: LOCI or OSH?
Push to DockerHub/Quay on a periodic basis?
Where is the documentation about openstackhelm/kubeadm-aio:dev ?
Is that system ubuntu only, or multi distro?
Reviews: Could I get reviews on:
https://review.openstack.org/#/q/project:%255Eopenstack/openstack-helm.*+owner:%22Jean-Philippe+Evrard+%253Cjean-philippe%2540evrard.me%253E%22++status:open+-DNM
@evrardjp
evrardjp / kubectl get logs (more in depth)
Last active October 23, 2018 15:39
get logs for osh
#!/usr/bin/env bash
OBJECT_TYPE=( configmaps cronjobs daemonsets deployment endpoints ingresses jobs networkpolicies pods podsecuritypolicies persistentvolumeclaims rolebindings roles secrets serviceaccounts services statefulsets )
for type in ${OBJECT_TYPE[*]}; do
kubectl get ${type} --all-namespaces=true -o json > /tmp/kubectl-${type}.json
done
tar zcvf /tmp/logs-kubectl.tar.gz /tmp/kubectl*
@evrardjp
evrardjp / Dockerfile
Created September 20, 2018 17:08
LOCI
# This is a workaround of upstream image until a new version of bindep is released with my fix:
FROM opensuse/leap:15
RUN sed -i 's/ID="opensuse-leap"/ID="opensuse"/g' /etc/os-release
@evrardjp
evrardjp / ansible-play-run.sh
Created September 18, 2018 07:27
ses-deploy
TASK: [ses | Run stage 3 - deployment] ****************************************
failed: [ses] => {"changed": false, "cmd": ["salt-run", "state.orch", "ceph.stage.deploy"], "delta": "0:00:28.266748", "end": "2018-09-18 07:08:58.092822", "rc": 1, "start": "2018-09-18 07:08:29.826074", "stdout_lines": ["apparmor : \u001b[1m\u001b[92mdisabled\u001b[0m", "firewall : \u001b[1m\u001b[93m['enabled on minion ccp-26168-ccpd']\u001b[0m", "DEV_ENV : \u001b[1m\u001b[92mTrue\u001b[0m", "fsid : \u001b[1m\u001b[92mvalid\u001b[0m", "public_network : \u001b[1m\u001b[92mvalid\u001b[0m", "cluster_network : \u001b[1m\u001b[92mvalid\u001b[0m", "cluster_interface : \u001b[1m\u001b[92mvalid\u001b[0m", "monitors : \u001b[1m\u001b[92mvalid\u001b[0m", "mgrs : \u001b[1m\u001b[92mvalid\u001b[0m", "storage : \u001b[1m\u001b[92mvalid\u001b[0m", "ganesha : \u001b[1m\u001b[92mval
@evrardjp
evrardjp / heat_template.yml
Created September 6, 2018 09:41
heat stack issue
ses_config_salt_minion:
type: OS::Heat::SoftwareConfig
properties:
config:
str_replace:
params:
$salt_master_ip: { get_attr: [ses-admin, networks, { get_resource: ses_network }, 0]}
$snet: { get_resource: ses_network}
$sfull: { get_attr: [ses-admin, networks] }
$sextract: { get_attr: [ses-admin, networks, { get_resource: ses_network}] }
@evrardjp
evrardjp / inventory.ini
Last active July 12, 2018 09:26
osa static inventory
aio1 ansible_connection=local ansible_host=127.0.0.1
# is_metal=True
## Setup hosts
[physical_hosts]
aio1
## Setup infra
[etcd_all]
@evrardjp
evrardjp / gist:d9816859afb9e4cdb3cdb89012fbd4c5
Created July 3, 2018 13:20
OSA groups without the children attribute
aodh_container
ceilometer_collector_container
compute_all
utility_container
swift-proxy_containers
cinder_scheduler_container
rsyslog
neutron_bgp_dragent
ironic-compute_hosts
operator_containers
@evrardjp
evrardjp / Instructions
Created June 27, 2018 08:45
Installing vagrant on xenial
apt purge vagrant
wget https://releases.hashicorp.com/vagrant/2.1.1/vagrant_2.1.1_x86_64.deb
apt install ./vagrant_2.1.1_x86_64.deb
vagrant plugin install vagrant-disksize
vagrant box add --name sles12sp3 ./sles12sp3.x86_64-0.0.1.virtualbox-Build3.46.box
@evrardjp
evrardjp / inventory
Created June 1, 2018 14:55
Testing delegation and stuff
[all]
machine1 ansible_connection=local
machine2 ansible_host=127.0.1.1 ansible_python_interpreter=/opt/ansible-runtime/bin/python
#localhost ansible_connection=local