Skip to content

Instantly share code, notes, and snippets.

View sysadmind's full-sized avatar

Joe Adams sysadmind

View GitHub Profile
# ansible/library/pulp_facts.py @ line 53
# Replace python-lxml with python2-lxml
# https://www.redhat.com/archives/pulp-dev/2016-December/msg00042.html
if 'python-lxml' in rpm_dependency_list:
rpm_dependency_list.remove('python-lxml')
rpm_dependency_list.append('python2-lxml')
#!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2016, Joe Adams <adams10301@gmail.com>
#
# This file is part of Ansible
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
#!/usr/bin/env python
import subprocess
from urlparse import urlparse
repos = [
# Centos
{'name': 'centos-6-x86_64-base', 'feed': 'http://mirror.centos.org/centos/6/os/x86_64/'},
{'name': 'centos-6-x86_64-updates', 'feed': 'http://mirror.centos.org/centos/6/updates/x86_64/'},
{'name': 'centos-6-x86_64-extras', 'feed': 'http://mirror.centos.org/centos/6/extras/x86_64/'},
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
#!/bin/bash
# Install RPM Fusion repo
dnf -y localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
# Install RPM Fusion Non-Free repo
dnf -y localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
# Mysql Community Repo
dnf -y install http://repo.mysql.com/mysql-community-release-fc20-5.noarch.rpm