Skip to content

Commit

Permalink
add bicep parameter file in state
Browse files Browse the repository at this point in the history
  • Loading branch information
xpillons committed Sep 13, 2023
1 parent cee31c3 commit 214f8c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions azhop_state.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,15 @@ case $COMMAND in
echo "Resource group is empty, exiting"
exit 1
fi
BICEP_PARAMS=$resource_group.parameters.json
# Copy state files into the state directory
mkdir -p $STATE_DIR
cp $AZHOP_CONFIG $STATE_DIR
ADMIN_USER=$(yq eval '.admin_user' $AZHOP_CONFIG)
cp ${ADMIN_USER}_id_rsa $STATE_DIR
cp ${ADMIN_USER}_id_rsa.pub $STATE_DIR
cp ${BICEP_PARAMS}_id_rsa.pub $STATE_DIR

mkdir -p $STATE_DIR/packer
cp packer/options.json $STATE_DIR/packer/options.json
mkdir -p $STATE_DIR/playbooks/group_vars
Expand Down

0 comments on commit 214f8c7

Please sign in to comment.