Skip to content

Instantly share code, notes, and snippets.

View alokjani's full-sized avatar

Alok Jani alokjani

  • Ontario
View GitHub Profile
########## Type
##################
Puppet::Type.newtype(:rjil_tempest_config) do
ensurable
newparam(:name, :namevar => true) do
desc 'Section/setting name to manage from tempest.conf'
newvalues(/\S+\/\S+/)
radosgw just works (tested for swift as of now), I am able to create containers and objects. But I see a weird issue on object download using swift client just fails complaining on content length vs readlength mismatch, but at the same time curl just works and I see right content in the downloaded file.
Here is the details
root@ocdb1-testjenkins-puppet-rjil-gate-265:/tmp# swift stat container openrc
Account: v1
Container: container
This is what I did to test consul puppet module
### In consul, any node whether it is agent or server, (other than initial node) need an agent address which is in the cluster in order to join the cluster. This is different from etcd where it allow for autodiscovery.
I Faced couple of issues with consul module.
1. Consul service configuration json is not correct when port parameter specified in consul::service. consul expect that parameter to be integer, but module write it as string. This need to be fixed.
2. If initial server is not up while starting other servers or agent, the cluster join will be failed, and unless there is any (new) service definition, that node will not be joining to the consul cluster, as cluster join code in the module is only called when service restart. I submitted a patch in jiocloud/puppet-consul to fix this.
Added initial server IP in hiera in my env as testing for now.
#! /bin/bash
echo "Checking to see if the Puppet Labs apt repo needs to be added..."
if [ ! -f /home/vagrant/repos_added.txt ];
then
echo "Adding Puppet Labs apt repository..."
sudo wget -N http://apt.puppetlabs.com/puppetlabs-release-quantal.deb >/dev/null
sudo dpkg -i puppetlabs-release-quantal.deb >/dev/null
echo "Updating apt..."
sudo apt-get update >/dev/null
#!/usr/bin/env bash
# This script will connect to the rest api of the puppetca listed in your
# puppet config and update the local copy certificate revocation list.
#
# This is useful when you have distributed puppet masters fronted by
# a webserver and passenger.
#
# https://docs.puppetlabs.com/guides/rest_api.html#certificate-revocation-list
# https://ask.puppetlabs.com/question/3843/multiple-puppet-masters-with-single-ca-server/
@alokjani
alokjani / sysctl.conf
Last active August 29, 2015 14:15 — forked from kfox/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
@alokjani
alokjani / LPIC-101 400-1
Created November 16, 2020 08:53 — forked from ntwobike/LPIC-101 400-1
Sample questions for LPIC -101-400 part-1
QUESTION 1
Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?
A. /etc/keys
B. /proc/keys
C. /etc/inittab
D. /proc/inittab
E. /etc/reboot
QUESTION 2
Which of the following information is stored within the BIOS? (Choose TWO correct answers.)
@alokjani
alokjani / LPIC-101 400-2
Created November 16, 2020 08:53 — forked from ntwobike/LPIC-101 400-2
Sample questions and answers for LPIC-101-400 part 2
Exam A
QUESTION 1
Which of the following information is stored within the BIOS? (Choose TWO correct answers.)
A. Boot device order
B. Linux kernel version
C. Timezone
D. Hardware configuration