Commit 119b0749 authored by Rane Squires's avatar Rane Squires

Update environments.pp adding new resources to manage tensorflow2 environment

parent f61d8d06
Pipeline #173 failed with stages
...@@ -49,6 +49,19 @@ class anaconda::environments { ...@@ -49,6 +49,19 @@ class anaconda::environments {
path => ['/bin','/opt/anaconda/bin'] path => ['/bin','/opt/anaconda/bin']
} }
file { '/opt/envs/tensorflow2.yml':
ensure => present,
source => 'puppet:///modules/anaconda/tensorflow2.yml',
require => File['/opt/envs'],
}
exec { 'setuptensorflow2':
unless => "conda env list | grep -q '/opt/anaconda/envs/tensorflow2'",
command => 'conda env create -f /opt/envs/tensorflow2.yml',
require => File['/opt/envs/tensorflow2.yml'],
path => ['/bin','/opt/anaconda/bin']
}
file { '/opt/envs/bioinformatics.yml': file { '/opt/envs/bioinformatics.yml':
ensure => present, ensure => present,
source => 'puppet:///modules/anaconda/bioinformatics.yml', source => 'puppet:///modules/anaconda/bioinformatics.yml',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment