
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,804 Views
Hi Team,
Can you please help me find the exact documentation for the code mentioned below in the exercise
https://role.rhu.redhat.com/rol-rhu/app/courses/do380-4.10/pages/ch07s04
[student@workstation pools-creating]$ cat motd-mc.ymll apiVersion: machineconfiguration.openshift.io/v1 kind: MachineConfig metadata: labels: machineconfiguration.openshift.io/role: infra name: 50-motd spec: config: ignition: version: 3.2.0 storage: files: - contents: source: data:text/plain;charset=utf-8;base64,VGhpcpcyBh...9mIHRZS4K filesystem: root mode: 0644 path: /etc/motd
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,777 Views
Not necessarily
Please check: https://docs.openshift.com/container-platform/4.10/post_installation_configuration/node-tasks.html
There is an ignition example in section "Adding a new RHCOS worker node with a custom /var partition in AWS":
"source": "data:text/plain;charset=utf-8;base64,....."

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,793 Views
Hello,
Please see: https://docs.openshift.com/container-platform/4.10/post_installation_configuration/cluster-tasks.htm...
Section: Creating a machine config pool for infrastructure machines
There are some examples. It is not exact but close

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,788 Views
Thanks for getting back. Yah it's not exact
So we have to remember the syntax below during the exam :
- contents: source: data;text/plain;charset=utf-8;base64,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,778 Views
Not necessarily
Please check: https://docs.openshift.com/container-platform/4.10/post_installation_configuration/node-tasks.html
There is an ignition example in section "Adding a new RHCOS worker node with a custom /var partition in AWS":
"source": "data:text/plain;charset=utf-8;base64,....."

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,756 Views
No @sakshi-80 I dont think so that you have to remember this syntax - either take the basic idea from the doc as @justasd mentioned or you will have to edit / add the base 64 encoded contents only there.