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

Improved Startup scripts #60

Merged
merged 4 commits into from
Dec 14, 2021

Conversation

cboneti
Copy link
Member

@cboneti cboneti commented Dec 14, 2021

Submission Checklist:

  • Have you installed and run this change against pre-commit? pre-commit install
  • Are all tests passing? make tests
  • If applicable, have you written additional unit tests to cover this
    change?
  • Is unit test coverage still above 80%?
  • Have you updated any application documentation such as READMEs and user
    guides?
  • Have you followed the guidelines in our Contributing document?

Now startup scripts only need a single metadata entry (startup_script).
startup_script_custom is no longer needed.
It is now possible to specify runners with the following structures:

runners:
        - type: shell
          file: "modules/startup-script/examples/install_ansible.sh"
        - type: shell
          name: "test.sh"
          content:<<EOT
 #!/bin/sh
 echo this is a test
 <<EOT
Runners now take type, source | content, destination.
Changed the Omnia example, the documentation, and tests.
@cboneti cboneti self-assigned this Dec 14, 2021
resources/scripts/startup-script/README.md Show resolved Hide resolved
resources/scripts/startup-script/README.md Outdated Show resolved Hide resolved
resources/scripts/startup-script/README.md Show resolved Hide resolved
resources/scripts/startup-script/README.md Outdated Show resolved Hide resolved
resources/scripts/startup-script/README.md Show resolved Hide resolved
resources/scripts/startup-script/variables.tf Outdated Show resolved Hide resolved
resources/scripts/startup-script/README.md Outdated Show resolved Hide resolved
resources/scripts/startup-script/README.md Outdated Show resolved Hide resolved
Added a parameter "args" to the runners. It is only used with Shell
scripts.
@cboneti cboneti merged commit 0783e2b into GoogleCloudPlatform:develop Dec 14, 2021
@cboneti cboneti deleted the startup-scripts branch December 14, 2021 23:15
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.

2 participants