Skip to content

Instantly share code, notes, and snippets.

OCP 4.2/4.3 All-In-One (UPI mode)

This document assume reader is familiar with the OCP4x installation process.

Before Deployment

  • Setup the install-config.yaml to deploy a single master and no workers
    apiVersion: v1
    baseDomain: example.com
    
@TuranTimur
TuranTimur / gist:a322b806026389178039ddfee01d029d
Created August 25, 2024 02:34
custom shell by ansible action plugin
# roles/myrole/action_plugins/myshell.py
class ActionModule(ActionBase):
def run(self, tmp=None, task_vars=None):
super(ActionModule, self).run(tmp, task_vars)
module_args = self._task.args.copy()
module_args['_raw_params'] = module_args.get('cmd')
module_args['_uses_shell'] = True