Skip to content

Commit 8e3f5e1

Browse files
authored
Merge pull request #2056 from ScriptAutomate/update-readme-help
Update README script help output and scriptversions
2 parents 40e9184 + a336478 commit 8e3f5e1

File tree

3 files changed

+92
-81
lines changed

3 files changed

+92
-81
lines changed

README.rst

Lines changed: 90 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -84,112 +84,123 @@ To view the latest options and descriptions for ``salt-bootstrap``, use ``-h`` a
8484
Usage : bootstrap-salt.sh [options] <install-type> [install-type-args]
8585
8686
Installation types:
87-
- stable Install latest stable release. This is the default
88-
install type
89-
- stable [branch] Install latest version on a branch. Only supported
90-
for packages available at packages.broadcom.com
91-
- stable [version] Install a specific version. Only supported for
92-
packages available at packages.broadcom.com
93-
To pin a 3xxx minor version, specify it as 3xxx.0
94-
- testing RHEL-family specific: configure EPEL testing repo
95-
- git Install from the head of the master branch
96-
- git [ref] Install from any git ref (such as a branch, tag, or
97-
commit)
87+
- stable Install latest stable release. This is the default
88+
install type
89+
- stable [branch] Install latest version on a branch. Only supported
90+
for packages available at packages.broadcom.com
91+
- stable [version] Install a specific version. Only supported for
92+
packages available at packages.broadcom.com
93+
To pin a 3xxx minor version, specify it as 3xxx.0
94+
- testing RHEL-family specific: configure EPEL testing repo
95+
- git Install from the head of the master branch
96+
- git [ref] Install from any git ref (such as a branch, tag, or
97+
commit)
98+
- onedir Install latest onedir release.
99+
- onedir [version] Install a specific version. Only supported for
100+
onedir packages available at packages.broadcom.com
101+
102+
- onedir_rc Install latest onedir RC release.
103+
- onedir_rc [version] Install a specific version. Only supported for
104+
onedir RC packages available at packages.broadcom.com
98105
99106
Examples:
100107
- bootstrap-salt.sh
101108
- bootstrap-salt.sh stable
102-
- bootstrap-salt.sh stable 3006.7
103-
- bootstrap-salt.sh stable v3006.8
109+
- bootstrap-salt.sh stable 3006
110+
- bootstrap-salt.sh stable 3006.1
104111
- bootstrap-salt.sh testing
105112
- bootstrap-salt.sh git
113+
- bootstrap-salt.sh git 3006.7
114+
- bootstrap-salt.sh git v3006.8
106115
- bootstrap-salt.sh git 3007.1
107116
- bootstrap-salt.sh git v3007.1
108117
- bootstrap-salt.sh git 06f249901a2e2f1ed310d58ea3921a129f214358
118+
- bootstrap-salt.sh onedir
119+
- bootstrap-salt.sh onedir 3006
120+
- bootstrap-salt.sh onedir_rc
121+
- bootstrap-salt.sh onedir_rc 3008
122+
109123
110124
Options:
111-
-h Display this message
112-
-v Display script version
113-
-n No colours
114-
-D Show debug output
125+
-a Pip install all Python pkg dependencies for Salt. Requires -V to install
126+
all pip pkgs into the virtualenv.
127+
(Only available for Ubuntu based distributions)
128+
-A Pass the salt-master DNS name or IP. This will be stored under
129+
\${BS_SALT_ETC_DIR}/minion.d/99-master-address.conf
130+
-b Assume that dependencies are already installed and software sources are
131+
set up. If git is selected, git tree is still checked out as dependency
132+
step.
115133
-c Temporary configuration directory
116-
-g Salt Git repository URL. Default: https://github.com/saltstack/salt.git
117-
-w Install packages from downstream package repository rather than
118-
upstream, saltstack package repository. This is currently only
119-
implemented for SUSE.
120-
-k Temporary directory holding the minion keys which will pre-seed
121-
the master.
122-
-s Sleep time used when waiting for daemons to start, restart and when
123-
checking for the services running. Default: 3
124-
-L Also install salt-cloud and required python-libcloud package
125-
-M Also install salt-master
126-
-S Also install salt-syndic
127-
-W Also install salt-api
128-
-N Do not install salt-minion
129-
-X Do not start daemons after installation
134+
-C Only run the configuration function. Implies -F (forced overwrite).
135+
To overwrite Master, Syndic or Api configs, -M,-S or -W, respectively, must
136+
also be specified. Salt installation will be ommitted, but some of the
137+
dependencies could be installed to write configuration with -j or -J.
130138
-d Disables checking if Salt services are enabled to start on system boot.
131139
You can also do this by touching /tmp/disable_salt_checks on the target
132-
host. Default: ${BS_FALSE}
133-
-P Allow pip based installations. On some distributions the required salt
134-
packages or its dependencies are not available as a package for that
135-
distribution. Using this flag allows the script to use pip as a last
136-
resort method. NOTE: This only works for functions which actually
137-
implement pip based installations.
138-
-U If set, fully upgrade the system prior to bootstrapping Salt
140+
host. Default: \${BS_FALSE}
141+
-D Show debug output
142+
-f Force shallow cloning for git installations.
143+
This may result in an "n/a" in the version number.
144+
-F Allow copied files to overwrite existing (config, init.d, etc)
145+
-g Salt Git repository URL. Default: https://github.com/saltstack/salt.git
146+
-h Display this message
147+
-H Use the specified HTTP proxy for all download URLs (including https://).
148+
For example: http://myproxy.example.com:3128
149+
-i Pass the salt-minion id. This will be stored under
150+
\${BS_SALT_ETC_DIR}/minion_id
139151
-I If set, allow insecure connections while downloading any files. For
140152
example, pass '--no-check-certificate' to 'wget' or '--insecure' to
141153
'curl'. On Debian and Ubuntu, using this option with -U allows obtaining
142154
GnuPG archive keys insecurely if distro has changed release signatures.
143-
-F Allow copied files to overwrite existing (config, init.d, etc)
144-
-K If set, keep the temporary files in the temporary directories specified
145-
with -c and -k
146-
-C Only run the configuration function. Implies -F (forced overwrite).
147-
To overwrite Master or Syndic configs, -M or -S, respectively, must
148-
also be specified. Salt installation will be ommitted, but some of the
149-
dependencies could be installed to write configuration with -j or -J.
150-
-A Pass the salt-master DNS name or IP. This will be stored under
151-
${BS_SALT_ETC_DIR}/minion.d/99-master-address.conf
152-
-i Pass the salt-minion id. This will be stored under
153-
${BS_SALT_ETC_DIR}/minion_id
154-
-p Extra-package to install while installing Salt dependencies. One package
155-
per -p flag. You are responsible for providing the proper package name.
156-
-H Use the specified HTTP proxy for all download URLs (including https://).
157-
For example: http://myproxy.example.com:3128
158-
-b Assume that dependencies are already installed and software sources are
159-
set up. If git is selected, git tree is still checked out as dependency
160-
step.
161-
-f Force shallow cloning for git installations.
162-
This may result in an "n/a" in the version number.
163-
-l Disable ssl checks. When passed, switches "https" calls to "http" where
164-
possible.
165-
-V Install Salt into virtualenv
166-
(only available for Ubuntu based distributions)
167-
-a Pip install all Python pkg dependencies for Salt. Requires -V to install
168-
all pip pkgs into the virtualenv.
169-
(Only available for Ubuntu based distributions)
170-
-r Disable all repository configuration performed by this script. This
171-
option assumes all necessary repository configuration is already present
172-
on the system.
173-
-R Specify a custom repository URL. Assumes the custom repository URL
174-
points to a repository that mirrors Salt packages located at
175-
packages.broadcom.com. The option passed with -R replaces the
176-
"packages.broadcom.com". If -R is passed, -r is also set. Currently only
177-
works on CentOS/RHEL and Debian based distributions.
178-
-J Replace the Master config file with data passed in as a JSON string. If
179-
a Master config file is found, a reasonable effort will be made to save
155+
-j Replace the Minion config file with data passed in as a JSON string. If
156+
a Minion config file is found, a reasonable effort will be made to save
180157
the file with a ".bak" extension. If used in conjunction with -C or -F,
181158
no ".bak" file will be created as either of those options will force
182159
a complete overwrite of the file.
183-
-j Replace the Minion config file with data passed in as a JSON string. If
184-
a Minion config file is found, a reasonable effort will be made to save
160+
-J Replace the Master config file with data passed in as a JSON string. If
161+
a Master config file is found, a reasonable effort will be made to save
185162
the file with a ".bak" extension. If used in conjunction with -C or -F,
186163
no ".bak" file will be created as either of those options will force
187164
a complete overwrite of the file.
165+
-k Temporary directory holding the minion keys which will pre-seed
166+
the master.
167+
-K If set, keep the temporary files in the temporary directories specified
168+
with -c and -k
169+
-l Disable ssl checks. When passed, switches "https" calls to "http" where
170+
possible.
171+
-L Also install salt-cloud and required python-libcloud package
172+
-M Also install salt-master
173+
-n No colours
174+
-N Do not install salt-minion
175+
-p Extra-package to install while installing Salt dependencies. One package
176+
per -p flag. You are responsible for providing the proper package name.
177+
-P Allow pip based installations. On some distributions the required salt
178+
packages or its dependencies are not available as a package for that
179+
distribution. Using this flag allows the script to use pip as a last
180+
resort method. NOTE: This only works for functions which actually
181+
implement pip based installations.
188182
-q Quiet salt installation from git (setup.py install -q)
189-
-x Changes the Python version used to install Salt (default: Python 3)
190-
Python 2.7 is not longer supported.
191183
-Q Quickstart, install the Salt master and the Salt minion.
192184
And automatically accept the minion key.
185+
-R Specify a custom repository URL. Assumes the custom repository URL
186+
points to a repository that mirrors Salt packages located at
187+
packages.broadcom.com. The option passed with -R replaces the
188+
"packages.broadcom.com". If -R is passed, -r is also set. Currently only
189+
works on CentOS/RHEL and Debian based distributions and macOS.
190+
-s Sleep time used when waiting for daemons to start, restart and when
191+
checking for the services running. Default: 3
192+
-S Also install salt-syndic
193+
-r Disable all repository configuration performed by this script. This
194+
option assumes all necessary repository configuration is already present
195+
on the system.
196+
-U If set, fully upgrade the system prior to bootstrapping Salt
197+
-v Display script version
198+
-V Install Salt into virtualenv
199+
(only available for Ubuntu based distributions)
200+
-W Also install salt-api
201+
-x Changes the Python version used to install Salt (default: Python 3).
202+
Python 2.7 is no longer supported.
203+
-X Do not start daemons after installation
193204
194205
The Salt Bootstrap script has a wide variety of options that can be passed as
195206
well as several ways of obtaining the bootstrap script itself. Note that the use of ``sudo``

bootstrap-salt.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ if ($help) {
108108
exit 0
109109
}
110110

111-
$__ScriptVersion = "2024.11.21"
111+
$__ScriptVersion = "2024.11.26"
112112
$ScriptName = $myInvocation.MyCommand.Name
113113

114114
# We'll check for the Version next, because it also has no requirements

bootstrap-salt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#======================================================================================================================
2727
set -o nounset # Treat unset variables as an error
2828

29-
__ScriptVersion="2024.11.25"
29+
__ScriptVersion="2024.11.26"
3030
__ScriptName="bootstrap-salt.sh"
3131

3232
__ScriptFullName="$0"

0 commit comments

Comments
 (0)