Skip to content

Commit

Permalink
doc: add .gitea/PULL_REQUEST_TEMPLATE.md, xsrv: add functions descrip…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
nodiscc committed May 6, 2021
1 parent 226dc83 commit 6ba272d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitea/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [ ] CHANGELOG.md updated
3 changes: 3 additions & 0 deletions xsrv
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ function init_host() {
echo "[xsrv] ERROR: $playbook_dir/host_vars/$host_name already exists"; exit 1
fi
# TODO move inventory creation to init_playbook(), only handle adding a single host here
# TODO cleaup
if [[ ! -f "$playbook_dir/inventory.yml" ]]; then
echo "[xsrv] INFO: creating inventory for $playbook_name"
sed "s/my.example.org/$host_name/g" "$templates_dir/playbooks/xsrv/inventory.yml" >> "$playbook_dir/inventory.yml"
Expand Down Expand Up @@ -271,6 +272,7 @@ function upgrade_roles() {
}

function show_defaults() {
# show all role defaults, accepts a role name
check_playbook_exists
role=${2:-}
if ! hash "${pager%% *}" 2>/dev/null; then
Expand All @@ -291,6 +293,7 @@ function show_defaults() {
}

function self_upgrade() {
# upgrade the running xsrv scrip in-place
script_path="$0"
echo "[xsrv] INFO fetching latest release..."
if [[ -d "$xsrv_clone_dir/.git" ]]; then
Expand Down

0 comments on commit 6ba272d

Please sign in to comment.