Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F#129: Parses cloudconfig data from USER_DATA #130

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

aleixrm
Copy link
Member

@aleixrm aleixrm commented Oct 23, 2024

This PR adds cloud-config parsing and directives execution capabilities. The cloud-config script is specified through the USER_DATA context attribute.

For now we only support the following directives:

The cloud-init scripts are intended to be executed in the latest post-network contextualization steps, and only once during the instance boot (won't be executed on contextd reconfigurations). The lockfile that controls the execution is located in /var/lib/one-context/cloudinit/cloudinit-boot-finished and is created at the final step of cloudinit scripts.

Documentation in: https://github.com/aleixrm/one-apps/wiki/linux_feature#cloud-config-scripts

Closes #129

aleixrm and others added 11 commits October 23, 2024 12:02
Signed-off-by: Aleix Ramírez <aramirez@opennebula.io>
Signed-off-by: Aleix Ramírez <aramirez@opennebula.io>
Signed-off-by: Aleix Ramírez <aramirez@opennebula.io>
Signed-off-by: Aleix Ramírez <aramirez@opennebula.io>
Signed-off-by: Jaime <jconchello@opennebula.io>
Signed-off-by: Jaime <jconchello@opennebula.io>
Signed-off-by: Jaime <jconchello@opennebula.io>
Signed-off-by: Aleix Ramírez <aramirez@opennebula.io>
aleixrm and others added 5 commits October 25, 2024 11:21
Signed-off-by: Aleix Ramírez <aramirez@opennebula.io>
Signed-off-by: Aleix Ramírez <aramirez@opennebula.io>
Signed-off-by: Jaime <jconchello@opennebula.io>
Signed-off-by: Jaime <jconchello@opennebula.io>
Signed-off-by: Aleix Ramírez <aramirez@opennebula.io>
context-linux/src/etc/one-context.d/net-95-cloudinit-start Outdated Show resolved Hide resolved
context-linux/src/etc/one-context.d/net-95-cloudinit-start Outdated Show resolved Hide resolved
context-linux/src/etc/one-context.d/net-95-cloudinit-start Outdated Show resolved Hide resolved
context-linux/src/etc/one-context.d/net-95-cloudinit-start Outdated Show resolved Hide resolved
context-linux/src/usr/bin/one_cloudinit.rb Outdated Show resolved Hide resolved
context-linux/src/usr/bin/one_cloudinit.rb Outdated Show resolved Hide resolved
context-linux/src/usr/bin/one_cloudinit.rb Outdated Show resolved Hide resolved
context-linux/src/usr/bin/cloudinit_cc_run_cmd.rb Outdated Show resolved Hide resolved
context-linux/src/usr/bin/cloudinit_cc_run_cmd.rb Outdated Show resolved Hide resolved
Signed-off-by: Aleix Ramírez <aramirez@opennebula.io>
@aleixrm aleixrm requested a review from sk4zuzu November 15, 2024 10:20
Signed-off-by: Aleix Ramírez <aramirez@opennebula.io>
Signed-off-by: Aleix Ramírez <aramirez@opennebula.io>
@aleixrm aleixrm requested a review from sk4zuzu November 18, 2024 15:23
Copy link
Contributor

@sk4zuzu sk4zuzu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add basic cloud-init userdata primitives to one-context
3 participants