debops.cran default variables
Sections
Upstream configuration
- cran__upstream
Enable or disable configuration of upstream CRAN APT repositories. If disabled, R APT packages from the current OS release will be used instead. You can find more information about upstream R packages at https://cran.r-project.org/bin/linux/debian/
cran__upstream: True
- cran__upstream_mirror
The default CRAN mirror used by the APT package manager, as well as the source of R packages to install system-wide. See https://cran.r-project.org/mirrors.html for more details.
cran__upstream_mirror: 'https://cloud.r-project.org/'
- cran__upstream_apt_key_map
YAML dictionary that maps GPG keys of the upstream CRAN APT repositories to the OS distributions.
cran__upstream_apt_key_map:
'Debian': 'E19F5F87128899B192B1A2C2AD5F960A256A04AF'
'Ubuntu': 'E298A3A825C0D65DFD57CBB651716619E084DAB9'
- cran__upstream_apt_key
The GPG key of the upstream CRAN APT repository.
cran__upstream_apt_key: '{{ cran__upstream_apt_key_map[ansible_distribution] }}'
- cran__upstream_apt_suite_map
YAML dictionary that maps APT suites of the CRAN APT repository to OS distributions.
cran__upstream_apt_suite_map:
'Debian': '{{ ansible_distribution_release + "-cran35/" }}'
'Ubuntu': '{{ ansible_distribution_release + "-cran35/" }}'
- cran__upstream_apt_suite
The APT suite of the upstream CRAN APT repository.
cran__upstream_apt_suite: '{{ cran__upstream_apt_suite_map[ansible_distribution] }}'
- cran__upstream_apt_repo
The URL of the upstream CRAN APT repository to configure on the host.
cran__upstream_apt_repo: '{{ "deb " + cran__upstream_mirror + "bin/linux/"
+ ansible_distribution|lower + " "
+ cran__upstream_apt_suite }}'
APT packages
- cran__base_packages
List of the default APT packages to install for R support.
cran__base_packages: [ 'r-base', 'r-base-dev', 'r-recommended' ]
- cran__packages
List of APT packages to install with R on all hosts in the Ansible inventory.
cran__packages: []
- cran__group_packages
List of APT packages to install with R on hosts in a specific Ansible inventory group.
cran__group_packages: []
- cran__host_packages
List of APT packages to install with R on specific hosts in the Ansible inventory.
cran__host_packages: []
- cran__dependent_packages
List of APT packages to install with R that are requested by other Ansible roles via role dependent variables.
cran__dependent_packages: []
R packages
These variables define what R packages will be installed or removed
system-wide (in /usr/local/lib/R/site-library/
directory).
See cran__r_packages for more details.
- cran__r_packages
List of the R packages to manage system-wide on all hosts in the Ansible inventory.
cran__r_packages: []
- cran__group_r_packages
List of the R packages to manage system-wide on hosts in a specific Ansible inventory group.
cran__group_r_packages: []
- cran__host_r_packages
List of the R packages to manage system-wide on specific hosts in the Ansible inventory.
cran__host_r_packages: []
- cran__dependent_r_packages
List of the R packages to manage system-wide requested by other Ansible roles via role dependent variables.
cran__dependent_r_packages: []
Other configuration options
- cran__java_integration
Enable or disable Java integration if Java environment is detected on a host. Java might be required to install some R packages.
cran__java_integration: '{{ True
if (ansible_local|d() and ansible_local.java|d() and
(ansible_local.java.installed|d())|bool)
else False }}'
Configuration for other Ansible roles
- cran__apt_preferences__dependent_list
Configuration for the debops.apt_preferences.
cran__apt_preferences__dependent_list:
- packages: [ 'r-cran-coda', 'rkward' ]
pin: 'release o=CRAN'
priority: '600'
by_role: 'debops_cran'
reason: |
Packages in Debian Archive incompatible with upstream CRAN packages
https://cran.r-project.org/bin/linux/debian/#debian-stretch-stable
filename: 'debops_cran.pref'
state: '{{ "present"
if (ansible_distribution == "Debian" and cran__upstream|bool)
else "absent" }}'
- cran__keyring__dependent_apt_keys
Configuration for the debops.keyring Ansible role.
cran__keyring__dependent_apt_keys:
- id: '{{ cran__upstream_apt_key }}'
repo: '{{ cran__upstream_apt_repo }}'
state: '{{ "present" if cran__upstream|bool else "absent" }}'