Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.package
Commits
67a2abce
Commit
67a2abce
authored
Sep 17, 2024
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ors-amarisoft: fixup for
d1e5311d
parent
d1e5311d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
playbook/roles/amarisoft-upgrade/tasks/main.yml
playbook/roles/amarisoft-upgrade/tasks/main.yml
+6
-6
playbook/sha256sum
playbook/sha256sum
+1
-1
No files found.
playbook/roles/amarisoft-upgrade/tasks/main.yml
View file @
67a2abce
...
...
@@ -32,16 +32,16 @@
when
:
certificate.stat.exists == True
-
debug
:
msg
:
"
[{{
ansible_date_time.date
}}
{{
ansible_date_time.time
}}]
License
will
expire
on
{{
license_expiration.stdout
}},
current
version
is
{{
current_version.stdout
}}
-
{{
current_timestamp.stdout
}}"
msg
:
"
[{{
ansible_date_time.date
}}
{{
ansible_date_time.time
}}]
License
will
expire
on
{{
license_expiration.stdout
}},
current
version
is
{{
current_version.stdout
}}
.
{{
current_timestamp.stdout
}}"
when
:
certificate.stat.exists == True
-
name
:
Get new amarisoft version if available
shell
:
"
networkcache-download
-c
/opt/amarisoft/shacache.cfg
-k
key-private:amarisoft
'cn==
\"
{{
cn
}}
\"
'
'version<=
\"
{{
license_expiration.stdout
}}
\"
'
'version>>
\"
{{
current_version.stdout
}}
\"
'
'timestamp>>
\"
{{
current_timestamp.stdout
}}
\"
'
--list
|
grep
version
|
cut
-d
\\\"
-f4"
shell
:
"
networkcache-download
-c
/opt/amarisoft/shacache.cfg
-k
key-private:amarisoft
'cn==
\"
{{
cn
}}
\"
'
'version<=
\"
{{
license_expiration.stdout
}}
\"
'
'
timestamp>=
\"
0
\"
'
'
version>>
\"
{{
current_version.stdout
}}
\"
'
'timestamp>>
\"
{{
current_timestamp.stdout
}}
\"
'
--list
|
grep
version
|
cut
-d
\\\"
-f4"
register
:
new_version
when
:
certificate.stat.exists == True
-
name
:
Get new amarisoft timestamp
shell
:
"
networkcache-download
-c
/opt/amarisoft/shacache.cfg
-k
key-private:amarisoft
'cn==
\"
{{
cn
}}
\"
'
'version<=
\"
{{
license_expiration.stdout
}}
\"
'
'version>>
\"
{{
current_version.stdout
}}
\"
'
'timestamp>>
\"
{{
current_timestamp.stdout
}}
\"
'
--list
|
grep
timestamp
|
cut
-d
\\\"
-f4"
shell
:
"
networkcache-download
-c
/opt/amarisoft/shacache.cfg
-k
key-private:amarisoft
'cn==
\"
{{
cn
}}
\"
'
'version<=
\"
{{
license_expiration.stdout
}}
\"
'
'
timestamp>=
\"
0
\"
'
'
version>>
\"
{{
current_version.stdout
}}
\"
'
'timestamp>>
\"
{{
current_timestamp.stdout
}}
\"
'
--list
|
grep
timestamp
|
cut
-d
\\\"
-f4"
register
:
new_timestamp
when
:
(certificate.stat.exists == True) and (new_version.stdout != "")
...
...
@@ -50,7 +50,7 @@
when
:
(certificate.stat.exists == True) and (new_version.stdout != "")
-
name
:
Download nonce to decrypt new amarisoft version
shell
:
"
networkcache-download
-c
/opt/amarisoft/shacache.cfg
-k
file-private:amarisoft
'version<=
\"
{{
license_expiration.stdout
}}
\"
'
'version>>
\"
{{
current_version.stdout
}}
\"
'
'timestamp>>
\"
{{
current_timestamp.stdout
}}
\"
'
--list
|
grep
nonce
|
cut
-d
\\\"
-f4
>
{{
install_folder
}}/download/nonce"
shell
:
"
networkcache-download
-c
/opt/amarisoft/shacache.cfg
-k
file-private:amarisoft
'version<=
\"
{{
license_expiration.stdout
}}
\"
'
'
timestamp>=
\"
0
\"
'
'
version>>
\"
{{
current_version.stdout
}}
\"
'
'timestamp>>
\"
{{
current_timestamp.stdout
}}
\"
'
--list
|
grep
nonce
|
cut
-d
\\\"
-f4
>
{{
install_folder
}}/download/nonce"
register
:
nonce
when
:
(certificate.stat.exists == True) and (new_version.stdout != "")
...
...
@@ -58,11 +58,11 @@
when
:
(certificate.stat.exists == True) and (new_version.stdout != "")
-
name
:
Download new amarisoft version
shell
:
"
networkcache-download
-c
/opt/amarisoft/shacache.cfg
-k
file-private:amarisoft
'version<=
\"
{{
license_expiration.stdout
}}
\"
'
'version>>
\"
{{
current_version.stdout
}}
\"
'
'timestamp>>
\"
{{
current_timestamp.stdout
}}
\"
'
>
{{
install_folder
}}/download/amarisoft.tar.gz.enc"
shell
:
"
networkcache-download
-c
/opt/amarisoft/shacache.cfg
-k
file-private:amarisoft
'version<=
\"
{{
license_expiration.stdout
}}
\"
'
'
timestamp>=
\"
0
\"
'
'
version>>
\"
{{
current_version.stdout
}}
\"
'
'timestamp>>
\"
{{
current_timestamp.stdout
}}
\"
'
>
{{
install_folder
}}/download/amarisoft.tar.gz.enc"
when
:
(certificate.stat.exists == True) and (new_version.stdout != "")
-
name
:
Download encrypted symmetric key for new amarisoft version
shell
:
"
networkcache-download
-c
/opt/amarisoft/shacache.cfg
-k
key-private:amarisoft
'cn==
\"
{{
cn
}}
\"
'
'version<=
\"
{{
license_expiration.stdout
}}
\"
'
'version>>
\"
{{
current_version.stdout
}}
\"
'
'timestamp>>
\"
{{
current_timestamp.stdout
}}
\"
'
>
{{
install_folder
}}/download/symmetric_key.bin.enc"
shell
:
"
networkcache-download
-c
/opt/amarisoft/shacache.cfg
-k
key-private:amarisoft
'cn==
\"
{{
cn
}}
\"
'
'version<=
\"
{{
license_expiration.stdout
}}
\"
'
'
timestamp>=
\"
0
\"
'
'
version>>
\"
{{
current_version.stdout
}}
\"
'
'timestamp>>
\"
{{
current_timestamp.stdout
}}
\"
'
>
{{
install_folder
}}/download/symmetric_key.bin.enc"
when
:
(certificate.stat.exists == True) and (new_version.stdout != "")
-
name
:
Create directory if it does not exist
...
...
playbook/sha256sum
View file @
67a2abce
923f60fc3e28c6ac4828dbbf9ac09e5e255d46f9c63619e060bf4cced6cdd45f
-
e0cd6f14345f9b3557ed3e7ae727c798acd3d89c92e3eff20d9742dbe77bbe85
-
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