Commit a176876a authored by Rane Squires's avatar Rane Squires

Adds placeholder environment functionality

parent c6c784d3
Pipeline #12 canceled with stages
# @summary A short summary of the purpose of this class # @summary Generates and ensures the presence of environments in the Anaconda Installation
# #
# A description of what this class does # Generates and ensures the presence of environments in the Anaconda Installation
# #
# @example # @example
# include anaconda::environments # include anaconda::environments
class anaconda::environments { class anaconda::environments {
file { 'environment1.yml': #temporary name
ensure => present,
content => '', #content required to generate desire environment
require => Exec['initialinstallconda'],
}
exec { 'setupenvironment1':
unless => "conda env list | grep -q 'environment1'"
command => 'conda env create -f environment1.yml'
require => File[environment1.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