Update locations for bootstrap scripts, to new infrastructure layout

This commit is contained in:
David Murphy 2024-12-17 11:24:27 -07:00 committed by Daniel Wozniak
parent 29d83c1c24
commit d63a5ea374
7 changed files with 18 additions and 15 deletions

View file

@ -7,11 +7,11 @@
# #
# It has been designed as an example, to be customized for your own needs. # It has been designed as an example, to be customized for your own needs.
curl -L https://bootstrap.saltstack.com | sudo sh -s -- "$@" git develop curl -L https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh | sudo sh -s -- "$@" git develop
# By default, Salt Cloud now places the minion's keys and configuration in # By default, Salt Cloud now places the minion's keys and configuration in
# /tmp/.saltcloud/ before executing the deploy script. After it has executed, # /tmp/.saltcloud/ before executing the deploy script. After it has executed,
# these temporary files are removed. If you don't want salt-bootstrap to handle # these temporary files are removed. If you don't want salt-bootstrap to handle
# these files, comment out the above command, and uncomment the below command. # these files, comment out the above command, and uncomment the below command.
#curl -L https://bootstrap.saltstack.com | sudo sh -s git develop #curl -L https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh | sudo sh -s git develop

View file

@ -7,11 +7,11 @@
# #
# It has been designed as an example, to be customized for your own needs. # It has been designed as an example, to be customized for your own needs.
curl -L https://bootstrap.saltstack.com | sudo sh -s -- "$@" curl -L https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh | sudo sh -s -- "$@"
# By default, Salt Cloud now places the minion's keys and configuration in # By default, Salt Cloud now places the minion's keys and configuration in
# /tmp/.saltcloud/ before executing the deploy script. After it has executed, # /tmp/.saltcloud/ before executing the deploy script. After it has executed,
# these temporary files are removed. If you don't want salt-bootstrap to handle # these temporary files are removed. If you don't want salt-bootstrap to handle
# these files, comment out the above command, and uncomment the below command. # these files, comment out the above command, and uncomment the below command.
#curl -L https://bootstrap.saltstack.com | sudo sh #curl -L https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh | sudo sh

View file

@ -7,11 +7,11 @@
# #
# It has been designed as an example, to be customized for your own needs. # It has been designed as an example, to be customized for your own needs.
python -c 'import urllib; print urllib.urlopen("https://bootstrap.saltstack.com").read()' | sudo sh -s -- "$@" python -c 'import urllib; print urllib.urlopen("https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh").read()' | sudo sh -s -- "$@"
# By default, Salt Cloud now places the minion's keys and configuration in # By default, Salt Cloud now places the minion's keys and configuration in
# /tmp/.saltcloud/ before executing the deploy script. After it has executed, # /tmp/.saltcloud/ before executing the deploy script. After it has executed,
# these temporary files are removed. If you don't want salt-bootstrap to handle # these temporary files are removed. If you don't want salt-bootstrap to handle
# these files, comment out the above command, and uncomment the below command. # these files, comment out the above command, and uncomment the below command.
#python -c 'import urllib; print urllib.urlopen("https://bootstrap.saltstack.com").read()' | sudo sh #python -c 'import urllib; print urllib.urlopen("https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh").read()' | sudo sh

View file

@ -7,11 +7,11 @@
# #
# It has been designed as an example, to be customized for your own needs. # It has been designed as an example, to be customized for your own needs.
wget --no-check-certificate -O - https://bootstrap.saltstack.com | sudo sh -s -- "$@" wget --no-check-certificate -O - https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh | sudo sh -s -- "$@"
# By default, Salt Cloud now places the minion's keys and configuration in # By default, Salt Cloud now places the minion's keys and configuration in
# /tmp/.saltcloud/ before executing the deploy script. After it has executed, # /tmp/.saltcloud/ before executing the deploy script. After it has executed,
# these temporary files are removed. If you don't want salt-bootstrap to handle # these temporary files are removed. If you don't want salt-bootstrap to handle
# these files, comment out the above command, and uncomment the below command. # these files, comment out the above command, and uncomment the below command.
#wget --no-check-certificate -O - https://bootstrap.saltstack.com | sudo sh #wget --no-check-certificate -O - https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh | sudo sh

View file

@ -7,11 +7,11 @@
# #
# It has been designed as an example, to be customized for your own needs. # It has been designed as an example, to be customized for your own needs.
wget -O - https://bootstrap.saltstack.com | sudo sh -s -- "$@" wget -O - https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh | sudo sh -s -- "$@"
# By default, Salt Cloud now places the minion's keys and configuration in # By default, Salt Cloud now places the minion's keys and configuration in
# /tmp/.saltcloud/ before executing the deploy script. After it has executed, # /tmp/.saltcloud/ before executing the deploy script. After it has executed,
# these temporary files are removed. If you don't want salt-bootstrap to handle # these temporary files are removed. If you don't want salt-bootstrap to handle
# these files, comment out the above command, and uncomment the below command. # these files, comment out the above command, and uncomment the below command.
#wget -O - https://bootstrap.saltstack.com | sudo sh #wget -O - https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh | sudo sh

View file

@ -623,7 +623,7 @@ def versions():
def bootstrap( def bootstrap(
version="develop", version="develop",
script="https://bootstrap.saltproject.io", script="https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh",
hosts="", hosts="",
script_args="", script_args="",
roster="flat", roster="flat",
@ -639,7 +639,7 @@ def bootstrap(
version : develop version : develop
Git tag of version to install Git tag of version to install
script : https://bootstrap.saltproject.io/ script : https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh
URL containing the script to execute URL containing the script to execute
hosts hosts
@ -699,8 +699,8 @@ def bootstrap(
.. code-block:: bash .. code-block:: bash
salt-run manage.bootstrap hosts='host1,host2' salt-run manage.bootstrap hosts='host1,host2'
salt-run manage.bootstrap hosts='host1,host2' version='v3004.2' salt-run manage.bootstrap hosts='host1,host2' version='v3006.2'
salt-run manage.bootstrap hosts='host1,host2' version='v3004.2' script='https://bootstrap.saltproject.io/develop' salt-run manage.bootstrap hosts='host1,host2' version='v3006.2' script='https://github.com/saltstack/salt-bootstrap/develop'
""" """
client_opts = __opts__.copy() client_opts = __opts__.copy()

View file

@ -2950,7 +2950,10 @@ def update_bootstrap(config, url=None):
- The absolute path to the bootstrap - The absolute path to the bootstrap
- The content of the bootstrap script - The content of the bootstrap script
""" """
default_url = config.get("bootstrap_script_url", "https://bootstrap.saltstack.com") default_url = config.get(
"bootstrap_script_url",
"https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh",
)
if not url: if not url:
url = default_url url = default_url
if not url: if not url: