Dear all,
I am trying to set up a Standalone qube with miniconda installed using salt. It worked before the last update to 4.2.3. After the update i get an error “: …code-block:: bash.” Do you have any work around solution?
I could not find anything useful on the salt website.
Here is a example of the code:
Step 1: Download the Miniconda installer
download_conda:
cmd.run:
- name: |
apt install wget
wget {{ conda_url }} -O {{ download_path }}
Step 2: Verify the SHA-256 checksum of the installer
verify_conda_sha256:
cmd.run:
- name: |
if [ “$(sha256sum {{ download_path }} | awk ‘{print $1}’)” != {{ conda_sha256 }} ]; then
echo “SHA256 checksum does not match!”
exit 1
fi
- require:
- cmd: download_conda
Step 3: Install Miniconda if the SHA-256 checksum is correct
install_conda:
cmd.run:
- name: bash {{ download_path }} -b -p {{ conda_path }}
- creates: {{ conda_path }}
- require:
- cmd: verify_conda_sha256
Step 4: Initialize Conda for the user
conda_init:
cmd.run:
- name: {{ conda_path }}/bin/conda init bash
- runas: user
- require:
- cmd: install_conda