{
"links": {
"base": {},
"api": {},
"host_subscriptions": {
"List a host's subscriptions": "/api/hosts/:host_id/subscriptions",
"Trigger an auto-attach of subscriptions": "/api/hosts/:host_id/subscriptions/auto_attach",
"List subscription events for the host": "/api/hosts/:host_id/subscriptions/events",
"Unregister the host as a subscription consumer": "/api/hosts/:host_id/subscriptions",
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
--- | |
- hosts: all | |
vars: | |
satellite_fqdn: satellite.local | |
satellite_port: 443 | |
satellite_user: admin | |
satellite_password: changeme |
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 | |
Override repositories per host on a Satellite server | |
Usage: $0 | |
-s, --server Satellite server | |
-u, --user username on Satellite server |
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 -s server -u user -p pass | |
Lists host names and host IDs registered to a Satellite Server in CSV format | |
EOF | |
exit 0 | |
} |
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 python | |
# File: sat6ShowHostSubscriptions.py | |
# Authors: Rich Jerrido <[email protected]> | |
# Christopher Hornberger <[email protected]> | |
# | |
# Purpose: given an hostname and login to Satelite, show me all the | |
# hosts and their subscriptions. | |
# | |
# This program is free software; you can redistribute it and/or modify |
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
# HAProxy TCP Binary Check for Postgres Replica Instance | |
# Copyright (C) "2021" Matous Jan Fialka, <https://mjf.cz/> | |
# Released under the terms of "The MIT License" | |
# https://www.postgresql.org/docs/current/protocol-message-formats.html | |
backend postgres | |
bind :5432 |
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
--- | |
- hosts: all | |
become: true | |
# We may not have python3 on FCOS, so don't gather facts yet. We will make | |
# sure Python is installed first then explicitly gather facts later. | |
gather_facts: false | |
pre_tasks: | |
# If the host doesn't have python3 + the docker and selinux modules, | |
# this will fail. failed_when swallows the error but we can later use | |
# the return code to decide to try installing these dependencies. |
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
# Sample haproxy postgresql master check | |
# | |
# haproxy listen: 5431 | |
# pg, instance #1 listen: 5432 (master node) | |
# pg, instance #2 listen: 5433 (replica node) | |
# external failover, promoting replica to master in case of failure | |
# passwordless auth for user web | |
# template1 database is accessible by user web | |
# | |
# haproxy will pass connection to postgresql master node: |
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 python | |
#-*- coding: utf-8 -*- | |
"""This is a script that we use to reload geoserver catalogs when load balancing them""" | |
""" | |
Copyright 2014 Camptocamp. All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, are | |
permitted provided that the following conditions are met: |