Initial commit.
This commit is contained in:
77
rhsm/logging.conf
Normal file
77
rhsm/logging.conf
Normal file
@@ -0,0 +1,77 @@
|
||||
# This file is no longer used and will be removed in a future version.
|
||||
# Any changes here will be ignored.
|
||||
# Please see `man rhsm.conf` for new logging config information.
|
||||
[loggers]
|
||||
keys=root,rhsm-app,rhsm,subscription_manager,py.warnings
|
||||
|
||||
[handlers]
|
||||
keys=rhsm_log,subman_debug
|
||||
|
||||
[formatters]
|
||||
keys=rhsm_log,subman_debug
|
||||
|
||||
|
||||
|
||||
[logger_root]
|
||||
level=NOTSET
|
||||
handlers=subman_debug
|
||||
|
||||
[logger_rhsm-app]
|
||||
level=DEBUG
|
||||
handlers=rhsm_log
|
||||
qualname=rhsm-app
|
||||
|
||||
[logger_rhsm]
|
||||
level=DEBUG
|
||||
handlers=rhsm_log
|
||||
qualname=rhsm
|
||||
|
||||
[logger_subscription_manager]
|
||||
level=DEBUG
|
||||
handlers=rhsm_log
|
||||
qualname=subscription_manager
|
||||
|
||||
[logger_py.warnings]
|
||||
level=WARNING
|
||||
handlers=rhsm_log
|
||||
qualname=py.warnings
|
||||
|
||||
|
||||
|
||||
[formatter_syslog]
|
||||
format=[%(levelname)s] @%(filename)s:%(lineno)d - %(message)s
|
||||
datefmt=
|
||||
class=logging.Formatter
|
||||
|
||||
[formatter_rhsm_log]
|
||||
format=%(asctime)s [%(levelname)s] %(cmd_name)s:%(process)d @%(filename)s:%(lineno)d - %(message)s
|
||||
datefmt=
|
||||
class=logging.Formatter
|
||||
|
||||
[formatter_subman_debug]
|
||||
format=%(asctime)s [%(name)s %(levelname)s] %(cmd_name)s(%(process)d):%(threadName)s @%(filename)s:%(funcName)s:%(lineno)d - %(message)s
|
||||
datefmt=
|
||||
class=logging.Formatter
|
||||
|
||||
|
||||
|
||||
[handler_syslog]
|
||||
class=handlers.SysLogHandler
|
||||
level=INFO
|
||||
formatter=syslog
|
||||
args=(('/dev/log',))
|
||||
|
||||
[handler_rhsm_log]
|
||||
class=subscription_manager.logutil.RHSMLogHandler
|
||||
level=INFO
|
||||
formatter=rhsm_log
|
||||
# logfilepath is '/var/log/rhsm/rhsm.log' by default
|
||||
# To change it, replace '%(logfilepath)s' with the path to the desired log file.
|
||||
# For example, args=('/var/log/rhsm/mylogfile.log',)
|
||||
args=('%(logfilepath)s',)
|
||||
|
||||
[handler_subman_debug]
|
||||
class=subscription_manager.logutil.SubmanDebugHandler
|
||||
level=DEBUG
|
||||
formatter=subman_debug
|
||||
args=()
|
||||
104
rhsm/rhsm.conf
Normal file
104
rhsm/rhsm.conf
Normal file
@@ -0,0 +1,104 @@
|
||||
# Red Hat Subscription Manager Configuration File:
|
||||
|
||||
# Unified Entitlement Platform Configuration
|
||||
[server]
|
||||
# Server hostname:
|
||||
hostname = subscription.rhsm.redhat.com
|
||||
|
||||
# Server prefix:
|
||||
prefix = /subscription
|
||||
|
||||
# Server port:
|
||||
port = 443
|
||||
|
||||
# Set to 1 to disable certificate validation:
|
||||
insecure = 0
|
||||
|
||||
# Set the depth of certs which should be checked
|
||||
# when validating a certificate
|
||||
ssl_verify_depth = 3
|
||||
|
||||
# an http proxy server to use
|
||||
proxy_hostname =
|
||||
|
||||
# The scheme to use for the proxy when updating repo definitions, if needed
|
||||
# e.g. http or https
|
||||
proxy_scheme = http
|
||||
|
||||
# port for http proxy server
|
||||
proxy_port =
|
||||
|
||||
# user name for authenticating to an http proxy, if needed
|
||||
proxy_user =
|
||||
|
||||
# password for basic http proxy auth, if needed
|
||||
proxy_password =
|
||||
|
||||
# host/domain suffix blacklist for proxy, if needed
|
||||
no_proxy =
|
||||
|
||||
[rhsm]
|
||||
# Content base URL:
|
||||
baseurl = https://cdn.redhat.com
|
||||
|
||||
# Repository metadata GPG key URL:
|
||||
repomd_gpg_url =
|
||||
|
||||
# Server CA certificate location:
|
||||
ca_cert_dir = /etc/rhsm/ca/
|
||||
|
||||
# Default CA cert to use when generating yum repo configs:
|
||||
repo_ca_cert = %(ca_cert_dir)sredhat-uep.pem
|
||||
|
||||
# Where the certificates should be stored
|
||||
productCertDir = /etc/pki/product
|
||||
entitlementCertDir = /etc/pki/entitlement
|
||||
consumerCertDir = /etc/pki/consumer
|
||||
|
||||
# Manage generation of yum repositories for subscribed content:
|
||||
manage_repos = 1
|
||||
|
||||
# Refresh repo files with server overrides on every yum command
|
||||
full_refresh_on_yum = 0
|
||||
|
||||
# If set to zero, the client will not report the package profile to
|
||||
# the subscription management service.
|
||||
report_package_profile = 1
|
||||
|
||||
# The directory to search for subscription manager plugins
|
||||
pluginDir = /usr/share/rhsm-plugins
|
||||
|
||||
# The directory to search for plugin configuration files
|
||||
pluginConfDir = /etc/rhsm/pluginconf.d
|
||||
|
||||
# Manage automatic enabling of yum/dnf plugins (product-id, subscription-manager)
|
||||
auto_enable_yum_plugins = 1
|
||||
|
||||
# Run the package profile on each yum/dnf transaction
|
||||
package_profile_on_trans = 0
|
||||
|
||||
# Inotify is used for monitoring changes in directories with certificates.
|
||||
# Currently only the /etc/pki/consumer directory is monitored by the
|
||||
# rhsm.service. When this directory is mounted using a network file system
|
||||
# without inotify notification support (e.g. NFS), then disabling inotify
|
||||
# is strongly recommended. When inotify is disabled, periodical directory
|
||||
# polling is used instead.
|
||||
inotify = 1
|
||||
|
||||
[rhsmcertd]
|
||||
# Interval to run cert check (in minutes):
|
||||
certCheckInterval = 240
|
||||
# Interval to run auto-attach (in minutes):
|
||||
autoAttachInterval = 1440
|
||||
# If set to zero, the checks done by the rhsmcertd daemon will not be splayed (randomly offset)
|
||||
splay = 1
|
||||
# If set to 1, rhsmcertd will not execute.
|
||||
disable = 0
|
||||
|
||||
[logging]
|
||||
default_log_level = INFO
|
||||
# subscription_manager = DEBUG
|
||||
# subscription_manager.managercli = DEBUG
|
||||
# rhsm = DEBUG
|
||||
# rhsm.connection = DEBUG
|
||||
# rhsm-app = DEBUG
|
||||
15
rhsm/syspurpose/valid_fields.json
Normal file
15
rhsm/syspurpose/valid_fields.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"role": [
|
||||
"CentOS Linux Server",
|
||||
"CentOS Linux Workstation",
|
||||
"CentOS Linux Compute Node"
|
||||
],
|
||||
"service_level_agreement": [
|
||||
"Self-Support"
|
||||
],
|
||||
"usage": [
|
||||
"Production",
|
||||
"Development/Test",
|
||||
"Disaster Recovery"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user