Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rsquires-anaconda
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rane Squires
rsquires-anaconda
Commits
28d947f5
Commit
28d947f5
authored
Jun 19, 2019
by
Rane Squires
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change 'unless' to 'onlyif' in third resource; fix formatting
parent
46de732b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
manifests/install.pp
manifests/install.pp
+12
-12
No files found.
manifests/install.pp
View file @
28d947f5
...
@@ -6,23 +6,23 @@
...
@@ -6,23 +6,23 @@
# include anaconda::install
# include anaconda::install
class
anaconda::install
{
class
anaconda::install
{
exec
{
'downloadconda'
:
exec
{
'downloadconda'
:
creates
=>
'/miniconda.sh'
,
creates
=>
'/miniconda.sh'
,
command
=>
'wget https://repo.continuum.io/miniconda/Miniconda3-3.7.0-Linux-x86_64.sh -O /miniconda.sh'
,
command
=>
'wget https://repo.continuum.io/miniconda/Miniconda3-3.7.0-Linux-x86_64.sh -O /miniconda.sh'
,
path
=>
[
'/usr/bin'
],
path
=>
[
'/usr/bin'
],
}
}
exec
{
'initialinstallconda'
:
exec
{
'initialinstallconda'
:
creates
=>
'/miniconda/bin/activate'
,
creates
=>
'/miniconda/bin/activate'
,
command
=>
'bash /miniconda.sh -b -p /miniconda'
,
command
=>
'bash /miniconda.sh -b -p /miniconda'
,
path
=>
[
'/bin'
,
'/usr/bin'
],
path
=>
[
'/bin'
,
'/usr/bin'
],
require
=>
Exec
[
'downloadconda'
],
require
=>
Exec
[
'downloadconda'
],
}
}
exec
{
'ensurecondainpath'
:
exec
{
'ensurecondainpath'
:
unless
=>
'echo $PATH | grep
/miniconda/bin'
,
onlyif
=>
'echo $PATH | grep -c
/miniconda/bin'
,
command
=>
'export PATH="/miniconda/bin:$PATH"'
,
command
=>
'export PATH="/miniconda/bin:$PATH"'
,
path
=>
[
'/bin'
],
path
=>
[
'/bin'
],
provider
=>
'shell'
,
provider
=>
'shell'
,
require
=>
Exec
[
'initialinstallconda'
],
require
=>
Exec
[
'initialinstallconda'
],
}
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment