Skip to content

Instantly share code, notes, and snippets.

View ArKam's full-sized avatar
🪐
It's a small world after all!

arkam ArKam

🪐
It's a small world after all!
View GitHub Profile
consul:
root_url: https://releases.hashicorp.com/consul
version: 0.7.0
services:
- server:
archive: consul_0.7.0_linux_amd64.zip
dir: /usr/local/bin/
- webui:
archive: consul_0.7.0_web_ui.zip
dir: /var/www/html/consul-ui/
@ArKam
ArKam / boot.ipxe
Last active June 10, 2023 21:18 — forked from robinsmidsrod/_INSTALL.md
Bootstrapping full iPXE native menu with customizable default option with timeout (also includes working Ubuntu 12.04 preseed install)
#!ipxe
# Global variables used by all other iPXE scripts
chain --autofree boot.ipxe.cfg ||
# Boot <boot-url>/<boot-dir>/hostname-<hostname>.ipxe
# if hostname DHCP variable is set and script is present
isset ${hostname} && chain --replace --autofree ${boot-dir}hostname-${hostname}.ipxe ||
# Boot <boot-url>/<boot-dir>/uuid-<UUID>.ipxe
[Service]
Environment="ETCD_ADVERTISE_CLIENT_URLS=http://:2379"
Environment="ETCD_INITIAL_ADVERTISE_PEER_URLS=http://:2380"
Environment="ETCD_INITIAL_CLUSTER=coreos-00=http://:2380"
Environment="ETCD_INITIAL_CLUSTER_STATE=new"
Environment="ETCD_INITIAL_CLUSTER_TOKEN=etcd-bootstrap"
Environment="ETCD_LISTEN_CLIENT_URLS=http://:2379"
Environment="ETCD_LISTEN_PEER_URLS=http://:2380"
Environment="ETCD_NAME=coreos-00"
#cloud-config
hostname: coreos-00
users:
- name: "vagrant"
groups:
- "sudo"
- "docker"
ssh-authorized-keys:
@ArKam
ArKam / vagrantfile
Last active November 23, 2015 17:00
# -*- mode: ruby -*-
# # vi: set ft=ruby :
require 'fileutils'
require 'open-uri'
require 'tempfile'
require 'yaml'
Vagrant.require_version ">= 1.6.0"