-
Notifications
You must be signed in to change notification settings - Fork 2
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
windrad6
wants to merge
35
commits into
ERIGrid2:master
Choose a base branch
from
windrad6:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
cfb7e20
add cloud init ability for ubunut. Fix issues when setting hostname/u…
windrad6 0e72923
Changed create_image.sh
vincent-bareiss cc6e0fd
flash iamge script
0f3ae46
Flash image script and support for branches
vincent-bareiss 0b5daaa
Fix branch and access token options
vincent-bareiss 6d8727f
Changed vault pass generation
vincent-bareiss 33b2f6e
Add automatic vault decryption
vincent-bareiss 19a4b16
Rename flash_image to update image
vincent-bareiss d5e661f
Add git options
vincent-bareiss 5d31615
Added git
vincent-bareiss cab9cb5
WIP: encrypting files with vaul
vincent-bareiss da224c0
Add password store and GPG
vincent-bareiss e5ab674
replace tab with 2 spaces
vincent-bareiss d3ed475
changed how vault passwords are created/handeled
vincent-bareiss 6512bf4
various fixes
stv0g 169b4e2
Update Readme
vincent-bareiss 2e12022
Change acslab to openvpn and make ovpn+snmp opt
vincent-bareiss b8c36a2
Add dependency checks
vincent-bareiss fadb7b1
Fix wrong setting dialog
vincent-bareiss 3bde8a1
fix small errors
vincent-bareiss f0fc2eb
add docker functionality
vincent-bareiss dd75d85
small fixes
windrad6 e40be71
strip color bytes from pass output
vincent-bareiss 42e5764
Changes to reflect new structure of pass repo
vincent-bareiss 1167b2f
fix spelling mistake in gpg key import
1d23764
update for docker compose
windrad6 cc52e9b
added env to create script
windrad6 b577c35
add ansible vault secret generation, fix hostname setting, update readme
windrad6 b1614b3
remove git token. Now part of the git url
windrad6 223e09f
Merge pull request #6 from windrad6/development
windrad6 69d3da0
Allow generation of images based on ubuntu 24.04
Hobbbbes 39911c7
Merge pull request #7 from Hobbbbes/ubuntu24.04
windrad6 0535c6b
Added support for a VAULT_KEY env variable
b684ce2
Added info about VAULT_KEY variable to README.md and fixed the flavor…
37eeadd
Merge pull request #8 from Hobbbbes/vaultkey
windrad6 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -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 | ||||||
echo "Using ansible secret ${VAULT_KEY}" | ||||||
fi | ||||||
|
||||||
# Check that required commands exist | ||||||
echo "Check if required commands are installed..." | ||||||
|
@@ -166,8 +169,10 @@ sed -i \ | |||||
|
||||||
#Generate ansible secret | ||||||
if [ ! -f ${OUTPUT_FOLDER}/"${NODENAME}"-vaultkey.secret ]; then | ||||||
echo "Generate ansible secret" | ||||||
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) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
fi | ||||||
cat <<EOF > ${OUTPUT_FOLDER}/"${NODENAME}"-vaultkey.secret | ||||||
#!/bin/bash | ||||||
echo "${VAULT_KEY}" | ||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.