Posts

kickstart snippet to Join RHEL Machine to Active Directory via SSSD

#!/bin/bash echo Configure Network Time Protocol yum install ntp -y rm -f /etc/ntp.conf cat > /etc/ntp.conf <<"EOF" # For more information about this file, see the man pages # ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5). driftfile /var/lib/ntp/drift # Permit time synchronization with our time source, but do not # permit the source to query or modify the service on this system. restrict default kod nomodify notrap nopeer noquery restrict -6 default kod nomodify notrap nopeer noquery # Permit all access over the loopback interface.  This could # be tightened as well, but to do so would effect some of # the administrative functions. restrict 127.0.0.1 restrict -6 ::1 # Hosts on local network are less restricted. #restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). server time01.exam...

How to register RHEV / VMWare guest systems to Red Hat Satellite v6 to use Red Hat Unlimited Guest Subscriptions?

How to register RHEV / VMWare guest systems to Red Hat Satellite v6 to use 'Red Hat Unlimited Guest Subscription' subscriptions?  Resolution Register any of the client system to Red Hat Satellite v6 using steps described at How do I register my client to my Red Hat Satellite 6 server? Install and configure virt-who package on the system that is registered to Red Hat Satellite v6 to use the following subscriptions. Red Hat Enterprise Linux Server Unlimited Guest Subscription. Red Hat Virtual Datacenter Subscription. Installing virt-who package on the system: [root@localhost ~]# yum install virt-who [root@localhost ~]# chkconfig virt-who on [root@localhost ~]# service virt-who start Configure virt-who service (VMWare): Edit the virt-who configuration file /etc/sysconfig/virt-who and enable the following parameters. VIRTWHO_BACKGROUND=1 VIRTWHO_DEBUG=0 VIRTWHO_INTERVAL=0 VIRTWHO_SATELLITE6=0 VIRTWHO_ESX=1 VIRTWHO_ESX_OWNER=<org ID> VIRTWHO_ESX_ENV=...

Register an server deployment to Satellite 6

#!/bin/bash # # Register an server deployment to Satellite 6 # You will need to substitute the appropriate exports # SAT6_SERVER - the FQDN of your Satellite 6 server # SAT_ORG - the organisation that you wish the system to join # SAT_ACT_KEY - the activation key created on the Sat6 System. This will specify the repos that are available. #    ***NOTE: ensure that the appropiate rh-common-rpms repo is enabled for each SAT_ACT_KEY referenced below #    ALSO: remember to attach a reasonable buffer of physical keys to this for now. Once registered, change the sub. This will be fixed. # # Once this is hooked up to Sat6, we can use puppet to do the rest of the config management. SAT6_SERVER=satellite.example.com if cat /etc/redhat-release | grep -i "release 7" then     RHEL_VER=7        SAT_ORG=example       SAT_ACT_KEY=rhel-7-server-x86     KAT_AGT_REPO=rhel-7-serv...

Reset from Custom Certs to Self-Signed Satellite 6

= Reset from Custom Certs to Self-Signed = 1) Edit /etc/katello-installer/answers.katello-installer.yaml  Examine the certs: section, it should look something like:   certs:      server_key: /root/certs/example6.redhat.com.key     ca_expiration: "36500"     regenerate_ca: false     generate: true     node_fqdn: sat-perf-04.idm.lab.bos.redhat.com     server_cert_req: /root/certs/example6.redhat.com.crt.req     org: SomeOrg     log_dir: /var/log/certs ... Replace the entire "certs:" section with the following, ensure the indentation matches the existing file:   certs:     generate: true     deploy: true     group: foreman remove all entries in that certs: section except for the above 2) Re-run katello-installer with the following flags: # katello-inst...

How to update ManageIQ appliance Image

To update the application to the latest revision, you can follow these simple steps: SSH into the image - the username  root  has the default password  smartvm  (you should change this password) Change the protocol of git to https:// git config --global url."https://".insteadOf git://  git pull bundle install  bundle exec rake evm:compile_assets

Use Katello-disconnected via proxy

Use Katello-disconnected via proxy While it is possible to set the proxy settings in the Katello Server, the synchronization server's proxy settings need to be manually configured. Log in as root on the katello disconnected server . Add the extra settings below to the following files:  /etc/pulp/server/plugins.conf.d/iso_importer.json  /etc/pulp/server/plugins.conf.d/puppet_importer.json  /etc/pulp/server/plugins.conf.d/yum_importer.json     Add these settings to the files above:     {          "proxy_host" : "proxy_url",          "proxy_port" : proxy_port,          "proxy_username" : "username",          "proxy_password" : "password"     } Be careful when editing JSON files. The files must contain all the settings listed above even if the proxy...

InternalServerError: 500 Internal Server Error

InternalServerError: 500 Internal Server Error Sometimes when Sometimes the content view hung or the product view also Looking into the production.log we can found the following error Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/api/v2/providers/show.json.rabl within katello/api/v2/layouts/resource (510.5ms) 500 Internal Server Error (RestClient::InternalServerError) Sometimes this errors are related to the database something is wrong on it one of the solution you can try is the following Use pulp-manage-db as user apache [root@host]# sudo -u apache pulp-manage-db Loading content types. Content types loaded. Ensuring the admin role and user are in place. Admin role and user are in place. Beginning database migrations. Migration package pulp.server.db.migrations is up to date at version 9 Migration package pulp_puppet.plugins.migrations is up to date at version 2 Applying pulp_rpm.plugins.migrations version 17 Migration to pulp_...