This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| major=$(facter operatingsystemmajrelease) | |
| repos=$(subscription-manager repos | grep 'Repo ID' | grep -v "rhel-" | cut -d: -f2) | |
| for repo in $repos; do | |
| echo $repo | grep -q "$major-server" | |
| retval=$? | |
| if [[ $retval != 0 ]] | |
| then | |
| subscription-manager repos --disable $repo | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trytond-account-1.8.0-3.el6,trytond-account-be-1.8.0-3.el6,trytond-account-de-skr03-1.8.0-3.el6,trytond-account-invoice-1.8.0-3.el6,trytond-account-invoice-history-1.8.0-3.el6,trytond-account-invoice-line-standalone-1.8.0-3.el6,trytond-account-product-1.8.0-3.el6,trytond-account-statement-1.8.0-3.el6,trytond-analytic-account-1.8.0-3.el6,trytond-analytic-invoice-1.8.0-3.el6,trytond-analytic-purchase-1.8.0-3.el6,trytond-analytic-sale-1.8.0-3.el6,trytond-calendar-1.8.0-3.el6,trytond-calendar-classification-1.8.0-3.el6,trytond-calendar-scheduling-1.8.0-3.el6,trytond-calendar-todo-1.8.0-3.el6,trytond-company-1.8.0-3.el6,trytond-company-work-time-1.8.0-3.el6,trytond-country-1.8.0-3.el6,trytond-currency-1.8.0-3.el6,trytond-dashboard-1.8.0-3.el6,trytond-google-maps-1.8.0-3.el6,trytond-google-translate-1.8.0-3.el6,trytond-ldap-authentication-1.8.0-3.el6,trytond-ldap-connection-1.8.0-3.el6,trytond-party-1.8.0-3.el6,trytond-party-siret-1.8.0-3.el6,trytond-party-vcarddav-1.8.0-3.el6,trytond-product-1.8.0-3.el6,trytond-pr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rest-client' | |
| require 'json' | |
| require 'openssl' | |
| uri = 'https://admin:changeme@katello-dev.bitbin.de/api/v2/hosts' | |
| hostinfo = {} | |
| hostinfo[:environment] = 'Standard_Base' | |
| hostinfo[:hostgroup_id] = 2 | |
| hostinfo[:name] = 'testtest2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| SALT_PATH=/home/stbenjam/foreman_salt | |
| if [[ -n $1 ]] | |
| then | |
| RAKE_PATH=`bundle show rake` | |
| ruby -I"lib:test:${SALT_PATH}/test:${SALT_PATH}/spec" -I"${RAKE_PATH}/lib" \ | |
| "${RAKE_PATH}/lib/rake/rake_test_loader.rb" $@ | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| usage() { | |
| cat <<EOF | |
| Usage: $0 <puppet server> | |
| EOF | |
| exit 1 | |
| } | |
| die() { echo "$@" 1>&2; exit 1; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% highlight yaml %} | |
| production: | |
| delivery_method: :sendmail | |
| {% endhighlight %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source ./foo.sh | |
| . ./foo.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| network --bootproto static --ip=<%= @host.ip %> --netmask=<%= @host.subnet.mask %> --gateway=<%= @host.subnet.gateway %> --nameserver=<%= [@host.subnet.dns_primary,@host.subnet.dns_secondary].reject{|n| n.blank?}.join(',') %> --hostname <%= @host %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [root@katello katello-deploy]# yum repolist | |
| Loaded plugins: product-id, rhnplugin, subscription-manager | |
| This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. | |
| This system is receiving updates from RHN Classic or RHN Satellite. | |
| repo id repo name status | |
| SCL CentOS-6Server - SCL 532 | |
| epel Extra Packages for Enterprise Linux 6 - x86_64 10,724 | |
| foreman Foreman nightly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| E.g. | |
| POST https://gatebuilder.bitbin.de/api/v2/smart_class_parameters/enable_sudo/override_values | |
| { | |
| "override_value": { | |
| "match": "fqdn=asgard.bitbin.de", | |
| "value": "unicorns" | |
| } | |
| } |