Skip to content

Instantly share code, notes, and snippets.

View cfarquhar's full-sized avatar

Charles Farquhar cfarquhar

  • San Antonio, TX
View GitHub Profile
@cfarquhar
cfarquhar / clean-up-boot-partition-ubuntu.md
Created January 3, 2019 16:08 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
--- tasks/lxc_cache_preparation.yml-orig 2017-06-21 05:38:45.447420912 +1000
+++ tasks/lxc_cache_preparation.yml 2017-06-21 05:48:09.927450316 +1000
@@ -36,6 +36,15 @@
- lxc-cache
- skip_ansible_lint
+- name: Ensure directories for lxc cache files exist
+ file:
+ dest: "/var/lib/lxc/LXC_NAME/rootfs{{ item.dest | default(item.src) | dirname }}"
+ state: directory
@cfarquhar
cfarquhar / Dockerfile
Created May 12, 2016 08:17 — forked from wrouesnel/Dockerfile
Centos7 and naked docker
FROM centos:7
RUN echo 'filesystems+="ext4"' > /etc/dracut.conf.d/supported_filesystems.conf
RUN yum update -y && \
yum install -y kernel ca-certificates \
systemd-networkd systemd-resolved
RUN update-ca-trust
---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
TASK: [raxmon_agent_install | Install python dependencies] ********************
failed: [617183-Infra01] => {"cmd": "/usr/local/bin/pip install -r /usr/lib/rackspace-monitoring-agent/plugins/requirements.txt", "failed": true}
msg: stdout: Ignoring indexes: https://pypi.python.org/simple/
Requirement already satisfied (use --upgrade to upgrade): ipaddr==2.1.11 in /usr/local/lib/python2.7/dist-packages (from -r /usr/lib/rackspace-monitoring-agent/plugins/requirements.txt (line 1))
Downloading/unpacking requests==2.4.3 (from -r /usr/lib/rackspace-monitoring-agent/plugins/requirements.txt (line 2))
http://rpc-slushee.rackspace.com/python_packages/9.0.0/ uses an insecure transport scheme (http). Consider using https if rpc-slushee.rackspace.com has it available
Downloading/unpacking lxml==3.4.0 (from -r /usr/lib/rackspace-monitoring-agent/plugins/requirements.txt (line 3))
http://rpc-slushee.rackspace.com/python_packages/9.0.0/ uses an insecure transport scheme (http). Consider using https if rpc-slushee.racks