Skip to content

Instantly share code, notes, and snippets.

View TanyaCouture's full-sized avatar

Tanya Couture TanyaCouture

View GitHub Profile
@TanyaCouture
TanyaCouture / PackagingRoadmap.md
Last active December 28, 2015 16:18 — forked from sehqlr/PackagingRoadmap.md
Packaging Roadmap for Mantl

Packaging Roadmap for Mantl

Rationale

To improve mantl's deployment speed, we are going to replace some ansible role logic with packages. These packages will be defined by a hammer spec, and uploaded to bintray. Anything that is as simple as 'copy this file here' or 'run this command' can be ported to these packages. Then, the ansible roles can be updated to simple package install commands

Because we are using the hammer tool to build these, when hammer supports .deb packages, ubuntu/debian support will come much more easily.

@TanyaCouture
TanyaCouture / spec.yml
Created February 9, 2016 17:10
mantl-collectd package
# collectd
Hostname "{{ inventory_hostname }}"
FQDNLookup false
Interval 10
Include "/etc/collectd.d/"
TypesDB "/usr/share/collectd/types.db"
LoadPlugin "cpu"
LoadPlugin "disk"
@TanyaCouture
TanyaCouture / logrotate_plans
Last active February 15, 2016 16:32
logrotate packaging plans
`mantl-logrotate`
tasks/main.yml
// set logrotate interval to daily
// in file /etc/logrotate.conf
// look for reg expression '^weekly'
// replace last matching line of reg expression with "daily"
packaging solutions:
sed 's/\(.*\)^weekly/daily/' /etc/logrotate.conf
// set logrotate retention period to 7 days
@TanyaCouture
TanyaCouture / etc package plans
Last active February 18, 2016 16:25
etcd-package-plans
`mantl-etcd`
defaults/main.yml
// variables
files/etcd-service-start.sh
files/etc-service.json
handlers/main.yml
// sudo systemctl restart etcd
// sudo systmectl restart skydns
@TanyaCouture
TanyaCouture / index.html
Created October 20, 2016 23:12
tribute page
<div class = "container">
<div class = "jumbotron">
<!--<div class = "body">-->
<div class = "text-center">
<h1>Dr. Norman Borlaug</h1>
<h2><em>The man who saved a billion lives</em></h2>
<div class = "white-box">
<img src = "https://c2.staticflickr.com/4/3689/10613180113_fdf7bcd316_b.jpg">
@TanyaCouture
TanyaCouture / index.html
Last active October 20, 2016 23:14
Portfolio
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/>
<div class = "container-fluid top-bar">
<div class = "row">
<div class = "col-md-1 text-left">
<img class = "img-circle" src = "https://github.com/TanyaCouture/portfolioImages/blob/master/10848776_10205150036767525_6212516804649939681_o.jpg?raw=true" alt = "Crater Lake">
</div>
<div class = "col-md-10 text-right">
<strong>Web Development Portfolio</strong>
</div>
@TanyaCouture
TanyaCouture / index.html
Created October 20, 2016 23:14
Random Quote Machine
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/>
<!--make button-->
<div class = "container-fluid">
<div class = "row text-center">
<h2>Random Quote Generator</h2>
</div>