Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
notebooks-operations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
702
Projekty
notebooks-operations
Commits
035b83a0
Commit
035b83a0
authored
2 months ago
by
František Dvořák
Browse files
Options
Downloads
Patches
Plain Diff
EGI devel: local accounting
parent
b5cc9e49
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
egi-devel/accounting_deployments/accounting-config.yaml
+27
-0
27 additions, 0 deletions
egi-devel/accounting_deployments/accounting-config.yaml
egi-devel/playbooks/accounting.yaml
+56
-0
56 additions, 0 deletions
egi-devel/playbooks/accounting.yaml
with
83 additions
and
0 deletions
egi-devel/accounting_deployments/accounting-config.yaml
0 → 100644
+
27
−
0
View file @
035b83a0
accounting
:
# schedule: 23 */6 * * *
sitename
:
EGI-NOTEBOOKS-DEVEL2
default_fqan
:
vo.notebooks.egi.eu
# fqan_key: primary_group
fqan
:
auger
:
urn:mace:egi.eu:group:auger:role=member#aai.egi.eu
biomed
:
urn:mace:egi.eu:group:biomed:role=member#aai.egi.eu
eiscat.se
:
urn:mace:egi.eu:group:eiscat.se:Dev:role=member#aai.egi.eu,urn:mace:egi.eu:group:eiscat.se:Hub:role=member#aai.egi.eu,urn:mace:egi.eu:group:cc-eiscat3d#sso.egi.eu
eval.c-scale.eu
:
urn:mace:egi.eu:group:eval.c-scale.eu:role=member#aai.egi.eu
vo.cessda.eduteams.org
:
urn:mace:egi.eu:group:vo.cessda.eduteams.org:role=member#aai.egi.eu
vo.environmental.egi.eu
:
urn:mace:egi.eu:group:vo.environmental.egi.eu:role=member#aai.egi.eu
vo.lethe-project.eu
:
urn:mace:egi.eu:group:vo.lethe-project.eu:role=member#aai.egi.eu,urn:mace:egi.eu:group:vo.lethe-project.eu:lethe-notebooks:role=member#aai.egi.eu
vo.panosc.eu
:
urn:mace:egi.eu:group:vo.panosc.eu:role=vm_operator#aai.egi.eu
vo.reliance-project.eu
:
urn:mace:egi.eu:group:vo.reliance-project.eu:role=member#aai.egi.eu
vo.access.egi.eu
:
urn:mace:egi.eu:group:vo.access.egi.eu:role=member#aai.egi.eu
vo.notebooks.egi.eu
:
urn:mace:egi.eu:group:vo.notebooks.egi.eu:role=member#aai.egi.eu
# used in devel
fedcloud.egi.eu
:
urn:mace:egi.eu:www.egi.eu:fedcloud-users:member@egi.eu,urn:mace:egi.eu:group:fedcloud-users#sso.egi.eu,urn:egi.eu:group:fedcloud-users
debug
:
true
prometheus
:
filter
:
"
pod=~'jupyter-.*'"
storage
:
apelSpool
:
/accounting/ssm
This diff is collapsed.
Click to expand it.
egi-devel/playbooks/accounting.yaml
0 → 100644
+
56
−
0
View file @
035b83a0
---
#
# HOWTO launch accounting immediately:
#
# kubectl create job accounting-main-manual -n accounting --from cronjob/notebooks-accounting
# kubectl delete job -n accounting accounting-main-manual
#
# kubectl create job accounting-apel-manual -n accounting --from cronjob/notebooks-accounting-ssm
# kubectl delete job -n accounting accounting-apel-manual
#
-
name
:
Accounting deployment
hosts
:
master[0]
become
:
true
tasks
:
-
name
:
Configure helm repo
shell
:
|-
helm repo add egi-accounting https://egi-federation.github.io/egi-notebooks-accounting
helm repo update
changed_when
:
true
when
:
"
'egi-accounting'
not
in
ansible_local.helm_repos
|
map(attribute='name')
|
list"
-
name
:
Get credentials from Vault for accounting
set_fact
:
secrets
:
"
{{
lookup('community.hashi_vault.hashi_vault',
(vault_mount_point,
'accounting')
|
join('/'),
token_validate=false)
}}"
-
name
:
Get accounting installation ID from Vault
set_fact
:
secrets
:
"
{{
secrets
|
combine(lookup('community.hashi_vault.hashi_vault',
(vault_mount_point,
'site-'
+
site_name)
|
join('/'),
token_validate=false))
}}"
-
name
:
Debug accounting secrets
debug
:
msg
:
"
{{
item.key
}}
=
{{
item.value
}}"
loop
:
"
{{
secrets
|
dict2items
}}"
-
name
:
Copy config file to master
template
:
src
:
"
../accounting_deployments/accounting-config.yaml"
dest
:
"
/tmp/accounting-config.yaml"
mode
:
0600
-
name
:
Deploy/upgrade accounting instance
vars
:
name
:
"
notebooks-accounting"
version
:
"
0.0.1-0.dev.git.1.h03f52eb"
shell
:
|-
helm status --namespace accounting {{ name }}
if [ $? -ne 0 ]; then
helm install --create-namespace --namespace accounting \
-f /tmp/accounting-config.yaml --version {{ version }} \
{{ name }} egi-accounting/notebooks-accounting
else
helm upgrade --version {{ version }} -f /tmp/accounting-config.yaml \
--namespace accounting {{ name }} egi-accounting/notebooks-accounting
fi
environment
:
KUBECONFIG
:
/etc/kubernetes/admin.conf
PATH
:
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
changed_when
:
true
when
:
true
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
register
or
sign in
to comment