This file contains 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
nmcli con | |
nmcli con down id 'Wired connection 1' | |
nmcli con up id 'Wired connection 1' | |
# Attempt to update device with changes to the currently active | |
# connection made since it was last applied and then try it again | |
nmcli device reapply 'Wired connection 1' |
This file contains 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
apiVersion: v1 | |
kind: List | |
items: | |
- kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: httpd-www | |
namespace: openshift-smoke-test | |
spec: |
This file contains 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
- name: Get a list of all pvcs using trident | |
vars: | |
# !unsafe tag tells ansible not to interpret any special characters | |
go_template: !unsafe '{{ range .items }}{{ if eq .spec.storageClassName "trident" }}{{ "- name: " }}{{ .metadata.name }} {{ "\n namespace: " }}{{ .metadata.namespace }}{{ "\n" }}{{ end }}{{ end }}' | |
shell: "oc get pvc | |
--all-namespaces | |
-o go-template='{{ go_template }}'" | |
register: get_pvcs | |
changed_when: false |
This file contains 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 | |
# ocp4-chk-upgrade-channel v0.0.3 last mod 2020/01/23 | |
# Copyright 2020 Ryan Sawhill Aroha <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
This file contains 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 | |
# ocp4-download-clients v0.2.0 last mod 2020/01/23 | |
# Copyright 2020 Ryan Sawhill Aroha <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
This file contains 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
PS: This method works just with BIOS | |
#Install packages# | |
sudo yum install git xz-devel -y | |
sudo yum groupinstall "Development tools" -y | |
#Download ipxe | |
git clone https://github.com/ipxe/ipxe/ | |
cd ipxe/src |
This file contains 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
- name: Update/reboot host | |
gather_facts: false | |
become: true | |
tasks: | |
- name: Update system packages | |
yum: | |
name: '*' | |
state: latest | |
register: yum_update | |
retries: 5 |
This file contains 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
--- | |
# ansible-playbook insert-htpasswd-identity-ocp.yaml --extra-vars '{"master_host_group":"masters","users":["user1","user2"],"password":"password"}' | |
- hosts: localhost | |
connection: local | |
become: false | |
tasks: | |
- name: Add users to htpasswd file | |
htpasswd: | |
create: yes | |
state: present |