Skip to content

Instantly share code, notes, and snippets.

View antonym's full-sized avatar
👨‍💻

Antony Messerli antonym

👨‍💻
View GitHub Profile
@antonym
antonym / gist:901ebb9a4c9889492ff1
Last active January 22, 2016 03:25
SteamOS default.preseed brewmaster
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
# Optionally specify additional locales to be generated.
d-i localechooser/supported-locales multiselect \
en_US.UTF-8, \
de_DE.UTF-8, \
fr_FR.UTF-8, \
it_IT.UTF-8, \
@antonym
antonym / gist:69ae2091f3947fbb3456
Created January 10, 2016 13:59
post_install.sh
#! /bin/sh
# script runs after debian installer has done its thing
chroot /target adduser --gecos "" --disabled-password steam
chroot /target usermod -a -G desktop,audio,dip,video,plugdev,netdev,bluetooth,pulse-access steam
chroot /target usermod -a -G pulse-access desktop
cat - > /target/usr/share/lightdm/lightdm.conf.d/20_steamos.conf << 'EOF'
[SeatDefaults]
pam-service=lightdm-autologin
autologin-user=steam
<?xml version="1.0"?>
<installation>
<primary-disk>sda</primary-disk>
<source type="url">http://pxe.xenserver.org/pxe/release/6.5.0</source>
<admin-interface name="eth0" proto="dhcp" />
</installation>
RECOMMENDED PC SPECS
GPU: NVIDIA GeForce® GTX 970 / AMD Radeon™ R9 290 equivalent or greater
CPU: Intel® i5-4590 / AMD FX 8350 equivalent or greater
RAM: 4GB+
Video Output: HDMI 1.4 or DisplayPort 1.2 or newer
USB Port: 1x USB 2.0 or greater port
Operating System: Windows 7 SP1 or newer
@antonym
antonym / gist:f43a967fac0f1c2bcf00f976295cba0f
Created May 9, 2016 15:33
openstack_user_config.yml for openstack-ansible blog
---
# container networks, safe to leave these as defaults
cidr_networks:
container: 172.29.236.0/22
tunnel: 172.29.240.0/22
storage: 172.29.244.0/22
# IPs from your tunnel and container networks that you want to reserve for the hosts
used_ips:
- 172.29.236.1
@antonym
antonym / gist:a7f8ffb5105d0cdcd6020a1deae2a675
Last active November 20, 2017 01:55
/etc/network/interfaces for openstack-ansible blog
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# Physical interface 1
auto em1
iface em1 inet manual
PLAY [chroot] ******************************************************************
TASK [setup] *******************************************************************
<chroot> THIS IS A LOCAL CHROOT DIR
<chroot> EXEC ['/sbin/chroot', u'chroot', '/bin/sh', '-c', u'/bin/sh -c \'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1465124409.77-30859986668600 `" && echo ansible-tmp-1465124409.77-30859986668600="` echo $HOME/.ansible/tmp/ansible-tmp-1465124409.77-30859986668600 `" ) && sleep 0\'']
<chroot> PUT /tmp/tmpyER_Vl TO /var/lib/jenkins/.ansible/tmp/ansible-tmp-1465124409.77-30859986668600/setup
<chroot> EXEC ['/sbin/chroot', u'chroot', '/bin/sh', '-c', u'dd of=/var/lib/jenkins/.ansible/tmp/ansible-tmp-1465124409.77-30859986668600/setup bs=65536']
<chroot> EXEC ['/sbin/chroot', u'chroot', '/bin/sh', '-c', u'/bin/sh -c \'sudo -H -S -n -u root /bin/sh -c \'"\'"\'echo BECOME-SUCCESS-ujrakhhoggwmpcmtimsimrvkhzljbosm; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /var/lib/jen
http://10.22.226.230:8080/v1/hosts/1
{
"active": true,
"cell_id": 1,
"created_at": "2017-02-03T19:29:36.000000",
"device_type": "server",
"id": 1,
"ip_address": "10.127.5.110",
"name": "osa-deploy",
"note": null,
ERROR! conflicting action statements
The error appears to have been in '/root/rpc-openstack/rpcd/playbooks/roles/rpc_maas/tasks/cdm.yml': line 44, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- include: ensure_filesystem_checks.yml
^ here
fatal: [aio1_swift_proxy_container-203c64da]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'swift_accesscheck_password' is undefined\n\nThe error appears to have been in '/root/rpc-openstack-master/rpcd/playbooks/roles/rpc_maas/tasks/swift_access_check.yml': line 17, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# Add a swift user for file checking\n- name: Create a keystone user for swift filecheck\n ^ here\n"}
fatal: [aio1_rabbit_mq_container-286ff53f]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'maas_rabbitmq_password' is undefined\n\nThe error appears to have been in '/root/rpc-openstack-master/rpcd/playbooks/roles/rpc_maas/tasks/rabbitmq_user.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact synta