-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RHCOS kernel options before installation (#129)
Signed-off-by: Aishwarya Kamat <aishwarya.kamat@ibm.com>
- Loading branch information
1 parent
46d3274
commit 467ffb6
Showing
7 changed files
with
47 additions
and
18 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- name: Create kernel arguments | ||
vars: | ||
role_n: '{{ item }}' | ||
template: | ||
src: preinstall-node-kargs.yaml.j2 | ||
dest: "{{ workdir }}/manifests/preinstall-{{ item }}-kargs.yaml" | ||
with_items: | ||
- master | ||
- worker |
11 changes: 11 additions & 0 deletions
11
playbooks/roles/ocp-config/templates/preinstall-node-kargs.yaml.j2
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: MachineConfig | ||
metadata: | ||
labels: | ||
machineconfiguration.openshift.io/role: '{{ role_n }}' | ||
name: 'preinstall-{{ role_n }}-kargs' | ||
spec: | ||
kernelArguments: | ||
{% for option in rhcos_pre_kernel_options %} | ||
- '{{ option }}' | ||
{% endfor %} |