mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Add example how to use Git install with HTTP proxy
This commit is contained in:
parent
9548d7d6ef
commit
758dc7215a
2 changed files with 18 additions and 8 deletions
20
README.rst
20
README.rst
|
@ -38,34 +38,42 @@ Examples
|
||||||
Install using curl
|
Install using curl
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Using ``curl`` to install latest git:
|
Using ``curl`` to install latest development version from GitHub:
|
||||||
|
|
||||||
.. code:: console
|
.. code:: console
|
||||||
|
|
||||||
curl -L https://bootstrap.saltstack.com -o install_salt.sh
|
curl -o install_salt.sh -L https://bootstrap.saltstack.com
|
||||||
sudo sh install_salt.sh git develop
|
sudo sh install_salt.sh git develop
|
||||||
|
|
||||||
If you want to install a specific release version (based on the git tags):
|
If you want to install a specific release version (based on the Git tags):
|
||||||
|
|
||||||
.. code:: console
|
.. code:: console
|
||||||
|
|
||||||
curl -o install_salt.sh -L https://bootstrap.saltstack.com
|
curl -o install_salt.sh -L https://bootstrap.saltstack.com
|
||||||
sudo sh install_salt.sh git v2015.8.7
|
sudo sh install_salt.sh git v2015.8.7
|
||||||
|
|
||||||
To install a specific branch from a git fork:
|
To install a specific branch from a Git fork:
|
||||||
|
|
||||||
.. code:: console
|
.. code:: console
|
||||||
|
|
||||||
curl -o install_salt.sh -L https://bootstrap.saltstack.com
|
curl -o install_salt.sh -L https://bootstrap.saltstack.com
|
||||||
sudo sh install_salt.sh -g https://github.com/myuser/salt.git git mybranch
|
sudo sh install_salt.sh -g https://github.com/myuser/salt.git git mybranch
|
||||||
|
|
||||||
If all you want is to install a ``salt-master`` using latest git:
|
If all you want is to install a ``salt-master`` using latest Git:
|
||||||
|
|
||||||
.. code:: console
|
.. code:: console
|
||||||
|
|
||||||
curl -o install_salt.sh -L https://bootstrap.saltstack.com
|
curl -o install_salt.sh -L https://bootstrap.saltstack.com
|
||||||
sudo sh install_salt.sh -M -N git develop
|
sudo sh install_salt.sh -M -N git develop
|
||||||
|
|
||||||
|
If your host has Internet access only via HTTP proxy:
|
||||||
|
|
||||||
|
.. code:: console
|
||||||
|
|
||||||
|
PROXY='http://user:password@myproxy.example.com:3128'
|
||||||
|
curl -o install_salt.sh -L -x "$PROXY" https://bootstrap.saltstack.com
|
||||||
|
sudo sh install_salt.sh -G -H "$PROXY" git
|
||||||
|
|
||||||
|
|
||||||
Install using wget
|
Install using wget
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -87,7 +95,7 @@ Install a specific version from git using ``wget``:
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
On the above example we added `-P` which will allow PIP packages to be installed if required but
|
On the above example we added `-P` which will allow PIP packages to be installed if required but
|
||||||
it's no a necessary flag for git based bootstraps.
|
it's no a necessary flag for Git based bootstraps.
|
||||||
|
|
||||||
|
|
||||||
Install using Python
|
Install using Python
|
||||||
|
|
|
@ -295,8 +295,10 @@ __usage() {
|
||||||
per -p flag. You're responsible for providing the proper package name.
|
per -p flag. You're responsible for providing the proper package name.
|
||||||
-d Disable check_service functions. Setting this flag disables the
|
-d Disable check_service functions. Setting this flag disables the
|
||||||
'install_<distro>_check_services' checks. You can also do this by
|
'install_<distro>_check_services' checks. You can also do this by
|
||||||
touching /tmp/disable_salt_checks on the target host. Default: \${BS_FALSE}
|
touching /tmp/disable_salt_checks on the target host.
|
||||||
-H Use the specified http proxy for the installation
|
Default: \${BS_FALSE}
|
||||||
|
-H Use the specified HTTP proxy for all download URLs (including https://).
|
||||||
|
For example: http://myproxy.example.com:3128
|
||||||
-Z Enable additional package repository for newer ZeroMQ
|
-Z Enable additional package repository for newer ZeroMQ
|
||||||
(Only available for RHEL/CentOS/Fedora/Ubuntu based distributions)
|
(Only available for RHEL/CentOS/Fedora/Ubuntu based distributions)
|
||||||
-b Assume that dependencies are already installed and software sources are
|
-b Assume that dependencies are already installed and software sources are
|
||||||
|
|
Loading…
Add table
Reference in a new issue