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

Implement cloud-config 'runcmd' support #27

Closed
ader1990 opened this issue Nov 29, 2019 · 0 comments
Closed

Implement cloud-config 'runcmd' support #27

ader1990 opened this issue Nov 29, 2019 · 0 comments

Comments

@ader1990
Copy link
Member

Cloud-init docs:

https://cloudinit.readthedocs.io/en/latest/topics/examples.html#run-commands-on-first-boot

Example userdata file:

#cloud-config

runcmd:
 - dir C:\\
ader1990 added a commit to ader1990/cloudbase-init-1 that referenced this issue Dec 3, 2019
If the userdata is of type cloud-config, the runcmd entry can contain
multiple entries with commands that will be executed, in the order
of their definition.

The commands can be given as a string or as an array of strings, the
first item being the binary to be executed and the rest being the
parameters of that binary.

The commands will be aggregated and written into one single shell file,
in the order of their definition.
On Windows, the file will be executed by the native Windows
shell cmd.exe.

Example userdata file:

runcmd:
 - 'dir C:\\'
 - ['echo', '1']

Fixes: cloudbase#27

Change-Id: Ie307e08f8c4108c7bf9108543cc90b6a7fa2e7ae
ader1990 added a commit to ader1990/cloudbase-init-1 that referenced this issue Dec 3, 2019
If the userdata is of type cloud-config, the runcmd entry can contain
multiple entries with commands that will be executed, in the order
of their definition.

The commands can be given as a string or as an array of strings, the
first item being the binary to be executed and the rest being the
parameters of that binary.

The commands will be aggregated and written into one single shell file,
in the order of their definition.
On Windows, the file will be executed by the native Windows
shell cmd.exe.

Example userdata file:

runcmd:
 - 'dir C:\\'
 - ['echo', '1']

Fixes: cloudbase#27

Change-Id: Ie307e08f8c4108c7bf9108543cc90b6a7fa2e7ae
ader1990 added a commit to ader1990/cloudbase-init-1 that referenced this issue Dec 5, 2019
If the userdata is of type cloud-config, the runcmd entry can contain
multiple entries with commands that will be executed, in the order
of their definition.

The commands can be given as a string or as an array of strings, the
first item being the binary to be executed and the rest being the
parameters of that binary.

The commands will be aggregated and written into one single shell file,
in the order of their definition.
On Windows, the file will be executed by the native Windows
shell cmd.exe.

Example userdata file:

runcmd:
 - 'dir C:\\'
 - ['echo', '1']

Fixes: cloudbase#27

Change-Id: Ie307e08f8c4108c7bf9108543cc90b6a7fa2e7ae
gab-satchi pushed a commit to gab-satchi/cloudbase-init that referenced this issue Dec 10, 2019
If the userdata is of type cloud-config, the runcmd entry can contain
multiple entries with commands that will be executed, in the order
of their definition.

The commands can be given as a string or as an array of strings, the
first item being the binary to be executed and the rest being the
parameters of that binary.

The commands will be aggregated and written into one single shell file,
in the order of their definition.
On Windows, the file will be executed by the native Windows
shell cmd.exe.

Example userdata file:

runcmd:
 - 'dir C:\\'
 - ['echo', '1']

Fixes: cloudbase#27

Change-Id: Ie307e08f8c4108c7bf9108543cc90b6a7fa2e7ae
ader1990 added a commit to ader1990/cloudbase-init-1 that referenced this issue Dec 17, 2019
If the userdata is of type cloud-config, the runcmd entry can contain
multiple entries with commands that will be executed, in the order
of their definition.

The commands can be given as a string or as an array of strings, the
first item being the binary to be executed and the rest being the
parameters of that binary.

The commands will be aggregated and written into one single shell file,
in the order of their definition.
On Windows, the file will be executed by the native Windows
shell cmd.exe.

Example userdata file:

runcmd:
 - 'dir C:\\'
 - ['echo', '1']

Fixes: cloudbase#27

Change-Id: Ie307e08f8c4108c7bf9108543cc90b6a7fa2e7ae
ader1990 added a commit to ader1990/cloudbase-init-1 that referenced this issue Dec 17, 2019
If the userdata is of type cloud-config, the runcmd entry can contain
multiple entries with commands that will be executed, in the order
of their definition.

The commands can be given as a string or as an array of strings, the
first item being the binary to be executed and the rest being the
parameters of that binary.

The commands will be aggregated and written into one single shell file,
in the order of their definition.
On Windows, the file will be executed by the native Windows
shell cmd.exe.

Example userdata file:

runcmd:
 - 'dir C:\\'
 - ['echo', '1']

Fixes: cloudbase#27

Change-Id: Ie307e08f8c4108c7bf9108543cc90b6a7fa2e7ae
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

No branches or pull requests

1 participant