This gist explains how to QE the certificate checking role.
- Install an ocp containized env with:
Inventory file named hosts like this:
diff --git a/git/.yamllint b/git/.yamllint | |
index ddc48e2..62ca263 100644 | |
--- a/git/.yamllint | |
+++ b/git/.yamllint | |
@@ -1,5 +1,15 @@ | |
+# -*- mode: yaml -*- | |
+# vim:ts=2:sw=2:ai:si:syntax=yaml | |
+# | |
+# yamllint configuration directives | |
+# Project Homepage: https://github.com/adrienverge/yamllint |
$ yamllint git/.yamllint | |
git/.yamllint | |
1:1 warning missing document start "---" (document-start) | |
48:5 warning comment not indented like content (comments-indentation) | |
56:5 warning comment not indented like content (comments-indentation) |
$ ipy | |
Python 2.7.11 (default, Sep 29 2016, 13:33:00) | |
Type "copyright", "credits" or "license" for more information. | |
IPython 3.2.1 -- An enhanced Interactive Python. | |
? -> Introduction and overview of IPython's features. | |
%quickref -> Quick reference. | |
help -> Python's own help system. | |
object? -> Details about 'object', use 'object??' for extra details. |
# This set's a shell command with the ID #1, | |
# results expire every 15 seconds, | |
# and new results are fetched 1 second after expiration. | |
backtick 1 15 1 battery.sh | |
# I do this because I know it works | |
hardstatus alwayslastline | |
# Here's my current hardline: | |
hardstatus string "%{= rk} %{W}%H %{k}[ %{=kw}%-Lw%{r}(%{W}%n*%f%t%{r})%{k}%+Lw%= %{k}]%{-b W} [%{k r}%1`] %0C:%s %{g}" |
;;; PUT DIS IN YOUR ~/.emacs FILE | |
(require 'package) ;; You might already have this line | |
;; (add-to-list 'package-archives | |
;; '("melpa" . "https://melpa.org/packages/")) | |
(add-to-list 'package-archives | |
'("melpa-stable" . "https://stable.melpa.org/packages/") t) |
*** Installation Summary *** | |
Hosts: | |
- m01.example.com | |
- OpenShift master | |
- OpenShift node (Unscheduled) | |
- Etcd (Embedded) | |
- Storage | |
- n02.example.com | |
- OpenShift node (Dedicated) |
289 set_node_ip: false | |
290 storage_plugin_deps: [ceph, glusterfs, iscsi] | |
291 ebug_level: '2' | |
292 default_node_selector: '' | |
293 dns_port: 8053 | |
294 dynamic_provisioning_enabled: true | |
295 embedded_dns: true | |
296 embedded_etcd: false |
# This file is what you're importing from when you do 'from ooinstall.utils import debug_env' | |
import logging | |
installer_log = logging.getLogger('installer') | |
def debug_env(env): | |
for k in sorted(env.keys()): | |
if k.startswith("OPENSHIFT") or k.startswith("ANSIBLE") or k.startswith("OO"): |
--- | |
- name: Check cert expirys | |
hosts: all | |
become: yes | |
gather_facts: no | |
vars: | |
openshift_certificate_expiry_save_json_results: yes | |
openshift_certificate_expiry_warning_days: 1500 | |
roles: | |
- role: openshift_certificate_expiry |