Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conda env setup #364

Draft
wants to merge 88 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
4198967
lnls-ans-role-conda: Create group and set permissions
carneirofc Jan 31, 2022
6228535
lnls-ans-role-conda-packages: Initial commit
carneirofc Jan 31, 2022
0e2effb
conda role with a bit more functionality
carneirofc Feb 1, 2022
3a284a6
lnls-ans-role-epics: Feature for enabling EPICS Python packages
carneirofc Feb 8, 2022
23fb4e8
lnls-ans-role-conda: Include /etc/profile.d/ template
carneirofc Feb 8, 2022
f8e6c74
lnls-ans-role-epics: Fix include_role
carneirofc Feb 8, 2022
4dc27d3
lnls-ans-role-conda-packages: Update readme
carneirofc Feb 8, 2022
6572881
lnls-ans-role-conda-packages: Update molecule settings
carneirofc Feb 8, 2022
8cb4ea3
lnls-ans-role-conda-packages: Include defaults with description
carneirofc Feb 8, 2022
47a4963
lnls-ans-role-conda-packages: Include lnls-ans-role-epics as dependency
carneirofc Feb 8, 2022
32fb53a
lnls-ans-role-conda-packages: Handy shell script for molecule
carneirofc Feb 8, 2022
5210899
lnls-ans-role-conda-packages: Include jinja templates for activate/de…
carneirofc Feb 8, 2022
4e92eea
lnls-ans-role-conda-packages: Include gnupg and apt https packages fo…
carneirofc Feb 8, 2022
444001c
lnls-ans-role-conda-packages: tasks related to the conda environment
carneirofc Feb 8, 2022
e9ca3b9
lnls-ans-role-conda-packages: Testing group_vars/
carneirofc Feb 8, 2022
4b8d1c4
inventories/sirius: Include conda group with fixed gid
carneirofc Feb 8, 2022
a509cd4
inventories/sirius: update eth-bridge-pru-serial url
carneirofc Feb 8, 2022
90e99b2
library: move conda library from lnls-ans-sirius-hlacon to roles/conda
carneirofc Feb 9, 2022
2c8e022
lnls-ans-role-conda-packages: Fix ansible templates
carneirofc Feb 9, 2022
b73fbde
lnls-ans-role-conda-packages: Remove hardcoded path
carneirofc Feb 9, 2022
a4ae6f5
lnls-ans-role-conda-packages: Fix git target name
carneirofc Feb 9, 2022
d7cf4d8
lnls-ans-role-conda-packages: Update Vagrant variables
carneirofc Feb 9, 2022
2639466
lnls-ans-role-sirius-hla: remove python references, we should be usin…
carneirofc Feb 9, 2022
1429d40
playbooks: Removed deprecated roles
carneirofc Feb 9, 2022
3b5e9a7
inventory/sirius: fac conda variables
carneirofc Feb 9, 2022
367de17
inventory/sirius: Sort variables
carneirofc Feb 9, 2022
88c2537
make: remove python and qt roles
carneirofc Feb 9, 2022
5866ee2
lnls-ans-role-pydm: remove qt role dependency
carneirofc Feb 9, 2022
4659360
lnls-ans-role-pydm: remove qt role dependency
carneirofc Feb 9, 2022
1b849ba
lnls-ans-role-sirius-apps: remove deprecated dependencies
carneirofc Feb 9, 2022
158cd98
lnls-ans-role-conda-packages: Better variable default
carneirofc Feb 9, 2022
60da5ad
lnls-ans-role-sirius-hlacon: Default python and pip to version 3
carneirofc Feb 9, 2022
11029dc
playbooks: Fix playbooks and taks related to conda
carneirofc Feb 10, 2022
6b513f4
merge
carneirofc Feb 10, 2022
3aa5a2e
Modline for yaml
carneirofc Feb 10, 2022
0bdf269
vagrant: Include general usage vagrant setup
carneirofc Feb 15, 2022
5309153
vagrant: Update vagrant settings, virtualbox recommended
carneirofc Feb 15, 2022
5951ed0
lnls-ans-role-cs-studio: remove debug variable
carneirofc Feb 15, 2022
ecf64a6
lnls-ans-role-network: ignore default_release if not defined
carneirofc Feb 15, 2022
2313d59
lnls-ans-role-sirius-bbb: Install rsync dependency
carneirofc Feb 15, 2022
670eae5
lnls-ans-role-sirius-bbb: Fix default mode
carneirofc Feb 16, 2022
1b4ef39
inventories/sirius: Move jupyter from conda packages to pip
carneirofc Feb 18, 2022
4ab42ed
inventories/sirius: Remove fixed pkg_ versions
carneirofc Feb 18, 2022
8119441
make: Include test_vagrant_deploy target
carneirofc Feb 18, 2022
2a790bf
tasks: Change loop var
carneirofc Feb 18, 2022
52d82d0
playbooks: Include kitty terminfo task
carneirofc Feb 18, 2022
38e882a
lnls-ans-role-conda: Include mamba; update requirements
carneirofc Feb 18, 2022
8dcae9f
lnls-ans-role-conda-packages: Using mamba as package manager
carneirofc Feb 18, 2022
f64dd90
lnls-ans-role-sirius-hlacon: mamba package manager, fix pip executabl…
carneirofc Feb 18, 2022
bb6dc6c
Update README
carneirofc Feb 18, 2022
fe1c4f4
Minor fixes
carneirofc Feb 18, 2022
544894b
lnls-ans-role-sirius-hlacon: FIX ansible_python_interpreter var
carneirofc Feb 21, 2022
7e7372f
Merge remote-tracking branch 'origin/master' into fac-conda-env
carneirofc Feb 21, 2022
79e29a7
inventories/sirius: sort settings
carneirofc Feb 21, 2022
885de39
playbooks: FIX role name
carneirofc Feb 21, 2022
0f15a75
inventories/sirius: Include python 2.7 environment
carneirofc Feb 21, 2022
bea56ba
lnls-ans-role-conda-packages: python-sirius symlink
carneirofc Feb 21, 2022
fd32487
lnls-ans-role-sirius-apps: Deprecate pip usaged
carneirofc Feb 21, 2022
ff9bbe9
lnls-ans-role-sirius-hla: Default apt state "present" setup-Debiant
carneirofc Feb 21, 2022
423abde
Update README
carneirofc Feb 21, 2022
f1b046c
lnls-ans-role-desktop-apps: Include ampty pkg_ version vars
carneirofc Feb 21, 2022
b328428
lnls-ans-role-repositories: comment out debian9 apt sources from debi…
carneirofc Feb 21, 2022
1be6357
lnls-ans-role-sirius-hlacon: FIX missing and wrong vars
carneirofc Feb 21, 2022
9cbbb63
lnls-ans-role-epics: Include install from source option
carneirofc Feb 21, 2022
d1df754
lnls-ans-role-repositories: Remove debian stretch...
carneirofc Feb 21, 2022
6e16dd7
inventories/sirius: move hlacon into the global conda setup
carneirofc Feb 21, 2022
bfb157b
Merge branch 'fac-conda-env' of https://github.com/lnls-sirius/lnls-a…
carneirofc Feb 21, 2022
1dae78f
lnls-ans-role-epics: Give the option to install EPICS from source
carneirofc Feb 22, 2022
63216cc
Update all
carneirofc Feb 22, 2022
6f61b8c
Update main.yml
carneirofc Feb 22, 2022
ded8d9a
lnls-ans-role-conda-packages: Include conda-forge when creating a new…
carneirofc Feb 23, 2022
e9486d7
lnls-ans-role-repositories: Remove NSLS2 key from bullseye
carneirofc Feb 23, 2022
7c4467a
Merge branch 'fac-conda-env' of https://github.com/lnls-sirius/lnls-a…
carneirofc Feb 23, 2022
53aea30
lnls-ans-role-conda-packages: FIX set file mode to 775 instead of 755…
carneirofc Feb 23, 2022
26b3df5
playbooks: Include conda and epics install playbook
carneirofc Feb 23, 2022
779ecf7
Remove blank spaces
carneirofc Feb 23, 2022
90b919f
lnls-ans-role-sirius-hla: Include bullseye vars file
carneirofc Feb 24, 2022
d25c43c
FIX: Remove dependencies from global python
carneirofc Feb 24, 2022
7d05c13
roles: trim whitespace
carneirofc Feb 24, 2022
c19fda6
FIX: CI
carneirofc Feb 25, 2022
b80d571
inventories/sirius: Update conda package and python version
carneirofc Feb 25, 2022
ab4037b
README: Include a real world examples
carneirofc Feb 25, 2022
e937f96
inventories/sirius: Update rf host list
carneirofc Feb 25, 2022
fdb24d1
inventories/sirius: Include localhost group
carneirofc Feb 25, 2022
9203130
tasks: dist variables task
carneirofc Feb 25, 2022
2007128
CI: Update ansible-lint version
carneirofc Feb 25, 2022
032542c
tasks: FIX var-spacing
carneirofc Feb 25, 2022
1998db4
Update README.md
carneirofc Feb 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 75 additions & 55 deletions inventories/sirius/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,73 @@ pkg_version_bpm_scripts: "master"
sirius_bbb_version: "v1.2.1"
pkg_version_sirius_epics_screens: "master"

pkg_version_hlacon_conda_qt: "5.12.9"
pkg_version_hlacon_conda_pyqt: "5.12.3"
pkg_version_hlacon_conda_pydm: "1.10.4"
pkg_version_hlacon_conda_siriushlacon: "2.4.1"

# === fac docker services ===

pkg_version_docker_machine_applications: "v1.1.0"
pkg_version_docker_ctrl_sys_consts: "v1.0.0"

# === fac conda environment ===
fac_conda_prefix: /opt/conda/envs/sirius
# === conda environments ===

conda_environments:
- name: GAS Conda Environment

conda_prefix: /opt/conda/envs/gas
conda_python_version: '3.9.2'

conda_packages:
- qt=5.12.9
- pyqt=5.12.3
- pydm=1.10.4

conda_pip_packages:
- siriushlacon==2.4.1

conda_activate_templates: []

conda_deactivate_templates: []

conda_clone_install_make: []

conda_app_executables:
- name: sirius-hla-as-ap-bbb-monitor
executable: sirius-hla-as-ap-bbb-monitor
- name: sirius-hla-as-ap-conlauncher
executable: sirius-hla-as-ap-conlauncher
- name: sirius-hla-as-ap-countingpru
executable: sirius-hla-as-ap-countingpru
- name: sirius-hla-as-ap-mbtemp
executable: sirius-hla-as-ap-mbtemp
- name: sirius-hla-as-ap-pctrl
executable: sirius-hla-as-ap-pctrl
- name: sirius-hla-as-ps-regatron
executable: sirius-hla-as-ps-regatron
- name: sirius-hla-as-ps-regatron-individual
executable: sirius-hla-as-ps-regatron-individual
- name: sirius-hla-as-pu-spixconv
executable: sirius-hla-as-pu-spixconv
- name: sirius-hla-as-va-agilent4uhv
executable: sirius-hla-as-va-agilent4uhv
- name: sirius-hla-as-va-agilent4uhv-device
executable: sirius-hla-as-va-agilent4uhv-device
- name: sirius-hla-as-va-mks937b
executable: sirius-hla-as-va-mks937b
- name: sirius-hla-bo-va-agilent4uhv-overview
executable: sirius-hla-bo-va-agilent4uhv-overview
- name: sirius-hla-bo-va-mks937b-overview
executable: sirius-hla-bo-va-mks937b-overview
- name: sirius-hla-si-va-agilent4uhv-overview
executable: sirius-hla-si-va-agilent4uhv-overview
- name: sirius-hla-si-va-mks937b-overview
executable: sirius-hla-si-va-mks937b-overview
- name: sirius-hla-tb-va-agilent4uhv-overview
executable: sirius-hla-tb-va-agilent4uhv-overview
- name: sirius-hla-tb-va-mks937b-overview
executable: sirius-hla-tb-va-mks937b-overview
- name: sirius-hla-ts-va-agilent4uhv-overview
executable: sirius-hla-ts-va-agilent4uhv-overview
- name: sirius-hla-ts-va-mks937b-overview
executable: sirius-hla-ts-va-mks937b-overview

anacso17 marked this conversation as resolved.
Show resolved Hide resolved
- name: FAC Conda environment - Python2

conda_prefix: /opt/conda/envs/py27
Expand All @@ -122,13 +175,13 @@ conda_environments:

conda_deactivate_templates: []

conda_clone_install_make: []
conda_clone_install_make:
# TODO: Update Makefile so we can ovewrite PIP and PYTHON
# - name: Linac PS IOCs
# repo: https://gitlab.cnpem.br/FACS/linac-ioc-ps.git
# targets: install
# version: "{{ pkg_version_linac_ioc_ps }}"
# force_version: true
- name: Linac PS IOCs
repo: https://gitlab.cnpem.br/FACS/linac-ioc-ps.git
targets: install
version: "{{ pkg_version_linac_ioc_ps }}"
force_version: true

conda_app_executables: []

Expand Down Expand Up @@ -168,15 +221,15 @@ conda_environments:
dest: sirius-deactivate.sh

conda_clone_install_make:
# TODO: Check if the really need this
# - name: Scripts
# org_url: https://github.com/lnls-sirius
# repo_name: scripts
# repo_version: "{{ pkg_sirius_scripts }}"
# clone_path: /tmp
# install_via_makefile: true
# make_install_target: install-ansible
# force_version: true
# TODO: Check if the really need this
- name: Scripts
org_url: https://github.com/lnls-sirius
repo_name: scripts
repo_version: "{{ pkg_sirius_scripts }}"
clone_path: /tmp
install_via_makefile: true
make_install_target: install-ansible
force_version: true

- repo: "https://github.com/lnls-fac/mathphys.git"
version: overwrite-make-variable
Expand Down Expand Up @@ -311,39 +364,6 @@ sirius_apps_hla_install_categories:
- sirius_apps_hla_apps
- sirius_apps_hla_opis


# === Sirius HLA CON packages ===
sirus_apps_hlacon_remove_from_system: true

sirius_apps_hlacon_conda_packages:
- "qt{{ (pkg_version_hlacon_conda_qt | length > 0) | ternary('==' + pkg_version_hlacon_conda_qt, '') }}"
- "pyqt{{ (pkg_version_hlacon_conda_pyqt | length > 0) | ternary('==' + pkg_version_hlacon_conda_pyqt, '') }}"
- "pydm{{ (pkg_version_hlacon_conda_pydm | length > 0) | ternary('==' + pkg_version_hlacon_conda_pydm, '') }}"

sirius_apps_hlacon_pip_packages:
- "siriushlacon{{ (pkg_version_hlacon_conda_siriushlacon | length > 0) | ternary('==' + pkg_version_hlacon_conda_siriushlacon, '') }}"

sirius_apps_hlacon_executables:
- sirius-hla-as-ap-bbb-monitor
- sirius-hla-as-ap-conlauncher
- sirius-hla-as-ap-countingpru
- sirius-hla-as-ap-mbtemp
- sirius-hla-as-ap-pctrl
- sirius-hla-as-ps-regatron
- sirius-hla-as-ps-regatron-individual
- sirius-hla-as-pu-spixconv
- sirius-hla-as-va-agilent4uhv
- sirius-hla-as-va-agilent4uhv-device
- sirius-hla-as-va-mks937b
- sirius-hla-bo-va-agilent4uhv-overview
- sirius-hla-bo-va-mks937b-overview
- sirius-hla-si-va-agilent4uhv-overview
- sirius-hla-si-va-mks937b-overview
- sirius-hla-tb-va-agilent4uhv-overview
- sirius-hla-tb-va-mks937b-overview
- sirius-hla-ts-va-agilent4uhv-overview
- sirius-hla-ts-va-mks937b-overview

# === VNC ===

# We don't care if vnc fails
Expand Down