Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
Project
M
mysql-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
salt
mysql-formula
Commits
d4067e13
Unverified
Commit
d4067e13
authored
Jan 29, 2019
by
Niels Abspoel
Committed by
GitHub
Jan 29, 2019
Browse files
Options
Downloads
Plain Diff
Merge pull request #214 from noelmcloughlin/fixes
Only download archive if necessary [macos]
parents
eb0431fb
d40a6c5d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mysql/macos/install.sls
+5
-20
5 additions, 20 deletions
mysql/macos/install.sls
with
5 additions
and
20 deletions
mysql/macos/install.sls
+
5
−
20
View file @
d4067e13
...
@@ -9,28 +9,24 @@ mysql-macos-extract-dirs:
...
@@ -9,28 +9,24 @@ mysql-macos-extract-dirs:
file.directory
:
file.directory
:
-
name
:
{{
dl.tmpdir
}}
-
name
:
{{
dl.tmpdir
}}
-
makedirs
:
True
-
makedirs
:
True
-
clean
:
True
{
%
- for product
,
data in mysql.macos.products.items() if "enabled" in data and data.enabled %
}
{
%
- for product
,
data in mysql.macos.products.items() if "enabled" in data and data.enabled %
}
{
%
- set archivefile = data.url.split('/')
[
-1
]
%
}
{
%
- set archivefile = data.url.split('/')
[
-1
]
%
}
{
%
- set archiveformat = archivefile.split('.')
[
-1
]
%
}
{
%
- set archiveformat = archivefile.split('.')
[
-1
]
%
}
{
%
- set archivename = archivefile|replace('.dmg'
,
'
'
)|replace('.tar.gz'
,
'
'
)|replace('.zip'
,
'
'
) %
}
{
%
- set archivename = archivefile|replace('.dmg'
,
'
'
)|replace('.tar.gz'
,
'
'
)|replace('.zip'
,
'
'
) %
}
mysql-macos-remove-previous-{{ product }}-download-archive
:
file.absent
:
-
name
:
{{
dl.tmpdir
}}
/{{ archivefile }}
-
require_in
:
-
mysql-macos-download-{{ product }}-archive
mysql-macos-download-{{ product }}-archive
:
mysql-macos-download-{{ product }}-archive
:
pkg.installed
:
pkg.installed
:
-
name
:
curl
-
name
:
curl
cmd.run
:
cmd.run
:
-
name
:
curl {{ dl.opts }} -o {{ dl.tmpdir }}/{{ archivefile }} {{ data.url }}
-
name
:
curl {{ dl.opts }} -o {{ dl.tmpdir }}/{{ archivefile }} {{ data.url }}
-
unless
:
test -f {{ dl.tmpdir }}/{{ archivefile }}
{
%
if grains
[
'
saltversioninfo'
]
>
=
[
2017
,
7
,
0
]
%
}
{
%
if grains
[
'
saltversioninfo'
]
>
=
[
2017
,
7
,
0
]
%
}
-
retry
:
-
retry
:
attempts
:
{{
dl.retries
}}
attempts
:
{{
dl.retries
}}
interval
:
{{
dl.interval
}}
interval
:
{{
dl.interval
}}
until
:
True
splay
:
10
{
%
endif %
}
{
%
endif %
}
-
require
:
-
require
:
-
mysql-macos-extract-dirs
-
mysql-macos-extract-dirs
...
@@ -41,8 +37,8 @@ mysql-macos-check-{{ product }}-archive-hash:
...
@@ -41,8 +37,8 @@ mysql-macos-check-{{ product }}-archive-hash:
-
name
:
file.check_hash
-
name
:
file.check_hash
-
path
:
{{
dl.tmpdir
}}
/{{ archivefile }}
-
path
:
{{
dl.tmpdir
}}
/{{ archivefile }}
-
file_hash
:
{{
data.sum
}}
-
file_hash
:
{{
data.sum
}}
-
onchanges
:
-
require
:
-
mysql-macos-download-{{ product }}-archive
-
cmd
:
mysql-macos-download-{{ product }}-archive
-
require_in
:
-
require_in
:
-
mysql-macos-{{ product }}-install
-
mysql-macos-{{ product }}-install
{
%
- endif %
}
{
%
- endif %
}
...
@@ -68,10 +64,7 @@ mysql-macos-{{ product }}-install:
...
@@ -68,10 +64,7 @@ mysql-macos-{{ product }}-install:
-
source_hash
:
{{
data.sum
}}
-
source_hash
:
{{
data.sum
}}
-
onchanges
:
-
onchanges
:
-
mysql-macos-download-{{ product }}-archive
-
mysql-macos-download-{{ product }}-archive
{
%
- endif %
}
{
%
- endif %
}
-
require_in
:
-
mysql-macos-tidyup-{{ product }}
{
%
- if "path" in data and data.path and "app" in data and data.app %
}
{
%
- if "path" in data and data.path and "app" in data and data.app %
}
...
@@ -100,12 +93,4 @@ mysql-macos-{{ product }}-desktop-shortcut-add:
...
@@ -100,12 +93,4 @@ mysql-macos-{{ product }}-desktop-shortcut-add:
-
file
:
mysql-macos-{{ product }}-desktop-shortcut-add
-
file
:
mysql-macos-{{ product }}-desktop-shortcut-add
{
%
- endif %
}
{
%
- endif %
}
mysql-macos-tidyup-{{ product }}
:
file.absent
:
-
name
:
{{
dl.tmpdir
}}
/{{ archivefile }}
-
onchanges
:
-
mysql-macos-download-{{ product }}-archive
{
%
endfor %
}
{
%
endfor %
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment