Skip to content

Instantly share code, notes, and snippets.

View linuxsimba's full-sized avatar

Linux Simba linuxsimba

View GitHub Profile
@linuxsimba
linuxsimba / gcp-cups-connector.conf
Last active April 14, 2016 20:56
gcp-cups-connector.conf upstart script
# Start Google Print Cups Connector
# Found at github.com/google/cups-connector
description "gcp-cups-connector"
author "Google"
# Start only when cups is up.
start on (filesystem
and (started cups and runlevel [2345]))
@linuxsimba
linuxsimba / create_tenant_project_and_user.yml
Last active April 30, 2020 14:56
openstack heat resource file - create tenant project and user
heat_template_version: 2015-04-30
description: Create a new Project. Assign a user and user-role pair.
parameters:
demo_project_name:
type: string
description: project name
demo_user_role:
type: string
@linuxsimba
linuxsimba / openstack_heat_create_network_server.yaml
Last active October 22, 2020 19:27
openstack heat - create network and servers
heat_template_version: 2015-04-30
description: Create new Tenant network and add a subnet to the network. Create 2 VMs and place the VMs in 2 unique compute nodes. Ensure each VM has a floating IP. User
that runs this MUST be in the openstack admin role
parameters:
demo_net_cidr:
type: string
description: CIDR for demo network
demo_net_gateway:
@linuxsimba
linuxsimba / tenant_network_server_params.yaml
Last active March 16, 2017 01:45
openstack tenant network and servers parameters
parameters:
demo_net_cidr: 10.100.1.0/24
demo_net_gateway: 10.100.1.2
demo_net_pool_start: 10.100.1.10
demo_net_pool_end: 10.100.1.100
demo_net_name: 'demonet'
demo_ext_net_name: 'ext-net'
demo_key_name: 'demo-key'
demo_image_name: 'cirros'
demo_flavor_name: 'm2.supertiny'
@linuxsimba
linuxsimba / guess_a_password.py
Last active February 6, 2016 16:45
Generates password dictionary for guessing a password
#!/usr/bin/python
# define the prefix to try since we knew what the password starts with
prefix = ['begin', 'Begin']
# list of sequences to run through
sequences = ['seq1', 'Seq1', 'SEQ1', 'se2', '!', '123', '555', '103', '_']
# open the password file where the dictionary will be saved
@linuxsimba
linuxsimba / astute_error.log
Created February 8, 2016 08:38
Error Message when building Mirantis Openstack in vagrant-libvirt
2016-02-07T17:17:02 debug: [544] Task '{"priority"=>700, "type"=>"puppet", "uids"=>["1"], "parameters"=>{"puppet_modules"=>"/etc/puppet/modules", "puppet_manifest"=>"/etc/puppet/modules/osnailyfacter/modular/netconfig/connectivity_tests.pp", "timeout"=>3600, "cwd"=>"/"}}' on node uid=1 deploying
2016-02-07T17:17:02 debug: [544] Data received by DeploymentProxyReporter to report it up: {"nodes"=>[{"uid"=>"1", "progress"=>0, "status"=>"deploying", "role"=>"primary-controller", "task"=>{"priority"=>700, "type"=>"puppet", "uids"=>["1"], "parameters"=>{"puppet_modules"=>"/etc/puppet/modules", "puppet_manifest"=>"/etc/puppet/modules/osnailyfacter/modular/netconfig/connectivity_tests.pp", "timeout"=>3600, "cwd"=>"/"}}}]}
2016-02-07T17:17:04 debug: [544] 951fbc53-c39d-4306-8c3e-d4e075165feb: MC agent 'puppetd', method 'last_run_summary', results: {:sender=>"1", :statuscode=>0, :statusmsg=>"OK", :data=>{:time=>{"anchor"=>0.00019518900000000002, "config_retrieval"=>1.469389132, "exec"=>33.166859273, "file"=>0.041204726
@linuxsimba
linuxsimba / fuel-mirror.txt
Created April 13, 2016 14:10
fuel-mirror output
[root@localhost vagrant]# fuel-mirror create help
Starting new HTTP connection (1): 10.20.0.2
Starting new HTTP connection (1): 10.20.0.2
Starting new HTTP connection (1): 10.20.0.2
Starting new HTTP connection (1): 10.20.0.2
usage: fuel-mirror create [-h] (-I PATH | -P NAME) -G GROUPS [GROUPS ...]
fuel-mirror create: error: argument -G/--group is required
[root@localhost vagrant]# ^C
[root@localhost vagrant]#
@linuxsimba
linuxsimba / Vagrantfile
Last active May 29, 2016 03:48
Tiny Linux Core Vagrantfile (libvirt only)
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = 'tc'
config.vm.box_url = "http://linuxsimba.com/vagrantbox/tinycore-7.0.libvirt.box"
config.vm.synced_folder '.', '/vagrant', :disabled => true
end
@linuxsimba
linuxsimba / Vagrantfile
Last active July 4, 2016 08:55
Vagrantfile for Openstack Ansible
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# This file has lots of comments. If you are using VIM,
# this quick liner will remove all comments, if you so wish.
#
# :g/\v^(#|$)/d
#
#
# All Vagrant configuration is done below. The "2" in Vagrant.configure
@linuxsimba
linuxsimba / vagrant-aio.rst
Last active July 4, 2016 08:52
Latest copy of vagrant-aio.rst