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

Add cloud-init capability for Ubuntu #2

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

Conversation

windrad6
Copy link

@windrad6 windrad6 commented Nov 27, 2021

No description provided.

@stv0g
Copy link
Contributor

stv0g commented Apr 24, 2024

I guess this needs some rebasing / squashing?

@windrad6
Copy link
Author

Yes we just merged into master in our fork and will have to cleanup in the next step

@stv0g stv0g changed the title add cloud init ability for ubunut. Fix issues when setting hostname/u… Add cloud-init capability for Ubuntu May 2, 2024
stv0g
stv0g previously approved these changes May 28, 2024
@stv0g stv0g dismissed their stale review May 28, 2024 07:08

Approved by accident

@stv0g
Copy link
Contributor

stv0g commented May 28, 2024

@windrad6 Do you want to have these changes reviewed?

VAULT_KEY=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 20; echo)
if [ -z "$VAULT_KEY" ]; then
echo "Generate ansible secret"
VAULT_KEY=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 20; echo)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
VAULT_KEY=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 20; echo)
VAULT_KEY=$(tr -dc A-Za-z0-9 < /dev/urandom | head -c 20; echo)

@@ -86,6 +86,9 @@ echo "Using token: ${TOKEN}"
echo "Using flavor: ${FLAVOR}"
echo "Using repo: ${GIT_URL}"
echo "Using branch: ${GIT_BRANCH}"
if [! -z "$VAULT_KEY" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if [! -z "$VAULT_KEY" ]; then
if [ ! -z "$VAULT_KEY" ]; then

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.

4 participants