Skip to content

Instantly share code, notes, and snippets.

View jperville's full-sized avatar

Julien Pervillé jperville

  • Perfect-Memory SA
  • Clermont-Ferrand, France
View GitHub Profile
kapitan | SUCCESS => {
"hostvars[inventory_hostname]": {
"ansible_check_mode": false,
"ansible_diff_mode": false,
"ansible_facts": {},
"ansible_forks": 5,
"ansible_host": "192.168.220.100",
"ansible_inventory_sources": [
"/home/julien/RubymineProjects/k8s-platform-deployment/work/allinone-prod/inventory/allinone/hosts.yml"
],
@jperville
jperville / ansible-run.txt
Created October 2, 2019 13:28
Ansible run to provision Heketi on kubespray
julien:kubespray(62113m|tags/v2.11.0) $ ansible-playbook -i ../inventory/vagrant/hosts.yml contrib/network-storage/heketi/heketi.yml
PLAY [heketi-node] ************************************************************************************************************************************************************************************************
TASK [prepare : Load lvm kernel modules] **************************************************************************************************************************************************************************
Wednesday 02 October 2019 14:19:01 +0200 (0:00:00.065) 0:00:00.065 *****
changed: [node2] => (item=dm_snapshot)
changed: [node1] => (item=dm_snapshot)
changed: [node3] => (item=dm_snapshot)
ok: [node2] => (item=dm_mirror)
FROM centos:7
# Set UTF-8 locale by default
ENV LC_ALL en_US.UTF-8
# Install the minimal ruby toolset (we `gem install bundler` because scl version is ancient at v1.7.8)
RUN INSTALL_PKGS="gcc gcc-c++ make openssl-devel rh-ruby23 rh-ruby23-ruby-devel" && \
yum install -y centos-release-scl && \
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && rpm -V $INSTALL_PKGS && \
yum clean all -y
@jperville
jperville / Dockerfile
Created April 26, 2017 19:57
Nested "bundle exec" setups invalid BUNDLE_BIN_PATH
FROM ubuntu:xenial
RUN apt-get update && apt-get install -y ruby2.3
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
FROM rabbitmq:3.6
# rabbitmq-management
RUN rabbitmq-plugins enable --offline rabbitmq_management
EXPOSE 15671 15672
# autocluster plugin - notice that we have to use our own build because official
# 0.6.1 release does not include the k8s plugin YET.
ADD docker/autocluster-0.6.1.ez /usr/lib/rabbitmq/lib/rabbitmq_server-${RABBITMQ_VERSION}/plugins/
RUN chmod a+r /usr/lib/rabbitmq/lib/rabbitmq_server-${RABBITMQ_VERSION}/plugins/autocluster*.ez \
@jperville
jperville / mongodb-persistent-petset.yaml
Created January 9, 2017 11:16
Petset example to deploy mongodb 3.2
kind: Template
apiVersion: v1
metadata:
name: mongodb-petset-replication
annotations:
description: "MongoDB Replication (based on PetSet). You must have persistent volumes available in your cluster to use this template."
iconClass: "icon-mongodb"
tags: "database,mongodb,replication"
parameters:
- name: MONGODB_USER
jp440p:docker(53m|master!) $ kitchen converge service-upstart-ubuntu-1404
-----> Starting Kitchen (v1.4.2)
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/httpclient-2.6.0.1/lib/httpclient/webagent-cookie.rb:458: warning: already initialized constant HTTPClient::CookieManager
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/httpclient-2.6.0.1/lib/httpclient/cookie.rb:8: warning: previous definition of CookieManager was here
-----> Creating <service-upstart-ubuntu-1404>...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'opscode-ubuntu-14.04'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: kitchen-docker-service-upstart-ubuntu-1404_default_1455282723066_17500
==> default: Clearing any previously set network interfaces...
@jperville
jperville / docker.conf
Created November 3, 2015 08:10
Docker upstart config
description "Docker daemon"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [!2345]
limit nofile 524288 1048576
limit nproc 524288 1048576
respawn
respawn limit 2 10