Skip to content

Commit

Permalink
Add support for Rocky Linux (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimesouza authored Aug 4, 2023
1 parent acbdd9a commit a3aa5c4
Show file tree
Hide file tree
Showing 18 changed files with 50 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This file keeps track of all notable changes to the Slurm Charms.
Unreleased
----------

- added support for Rocky Linux
- removed the nhc resource and packed the nhc tar file along with slurmd charm

1.1.1 - 2023-06-27
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,25 @@ deepclean: clean ## Cleanup charmcraft/lxd
slurmd: version ## Build slurmd
@cp version LICENSE icon.svg charm-slurmd/
@charmcraft pack --project-dir charm-slurmd ${VERBOSE}
@mv slurmd_ubuntu-22.04-amd64_ubuntu-20.04-amd64_centos-7-amd64.charm slurmd.charm
@mv slurmd_*.charm slurmd.charm

.PHONY: slurmctld
slurmctld: version ## pack slurmctld
@cp version LICENSE icon.svg charm-slurmctld/
@charmcraft pack --project-dir charm-slurmctld ${VERBOSE}
@mv slurmctld_ubuntu-22.04-amd64_ubuntu-20.04-amd64_centos-7-amd64.charm slurmctld.charm
@mv slurmctld_*.charm slurmctld.charm

.PHONY: slurmdbd
slurmdbd: version ## pack slurmdbd
@cp version LICENSE icon.svg charm-slurmdbd/
@charmcraft pack --project-dir charm-slurmdbd ${VERBOSE}
@mv slurmdbd_ubuntu-22.04-amd64_ubuntu-20.04-amd64_centos-7-amd64.charm slurmdbd.charm
@mv slurmdbd_*.charm slurmdbd.charm

.PHONY: slurmrestd
slurmrestd: version ## pack slurmrestd
@cp version LICENSE icon.svg charm-slurmrestd/
@charmcraft pack --project-dir charm-slurmrestd ${VERBOSE}
@mv slurmrestd_ubuntu-22.04-amd64_ubuntu-20.04-amd64_centos-7-amd64.charm slurmrestd.charm
@mv slurmrestd_*.charm slurmrestd.charm

.PHONY: charms
charms: readme slurmd slurmdbd slurmctld slurmrestd ## Build all charms
Expand Down
3 changes: 3 additions & 0 deletions charm-slurmctld/charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ bases:
- name: centos
channel: "7"
architectures: [amd64]
- name: centos
channel: "8"
architectures: [amd64]
parts:
charm:
build-packages: [git]
Expand Down
8 changes: 7 additions & 1 deletion charm-slurmctld/dispatch
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,16 @@ then
echo "Running unsuppored version of centos: $major"
exit -1
fi
elif [[ $ID == 'rocky' ]]
then
dnf install epel-release -y
dnf install dnf-plugins-core -y
dnf config-manager --set-enabled powertools -y
dnf install make automake yum-utils -y
else
echo "Running unsuppored os: $ID"
exit -1
fi
fi
touch .installed
fi

Expand Down
1 change: 1 addition & 0 deletions charm-slurmctld/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ series:
- focal
- jammy
- centos7
- centos8

peers:
slurmctld-peer:
Expand Down
2 changes: 1 addition & 1 deletion charm-slurmctld/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ influxdb==5.3.1
urllib3==1.26.9
etcd3gw==1.0.2
jinja2==3.1.2
git+https://github.com/omnivector-solutions/[email protected].13
git+https://github.com/omnivector-solutions/[email protected].15
3 changes: 3 additions & 0 deletions charm-slurmd/charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ bases:
- name: centos
channel: "7"
architectures: [amd64]
- name: centos
channel: "8"
architectures: [amd64]
parts:
charm:
build-packages: [git]
Expand Down
6 changes: 6 additions & 0 deletions charm-slurmd/dispatch
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ then
echo "Running unsuppored version of centos: $major"
exit -1
fi
elif [[ $ID == 'rocky' ]]
then
dnf install epel-release -y
dnf install dnf-plugins-core -y
dnf config-manager --set-enabled powertools -y
dnf install make automake yum-utils -y
else
echo "Running unsuppored os: $ID"
exit -1
Expand Down
1 change: 1 addition & 0 deletions charm-slurmd/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ series:
- focal
- jammy
- centos7
- centos8

provides:
slurmd:
Expand Down
2 changes: 1 addition & 1 deletion charm-slurmd/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ops==1.3.0
urllib3==1.26.9
etcd3gw==1.0.2
git+https://github.com/omnivector-solutions/[email protected].13
git+https://github.com/omnivector-solutions/[email protected].15
3 changes: 3 additions & 0 deletions charm-slurmdbd/charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ bases:
- name: centos
channel: "7"
architectures: [amd64]
- name: centos
channel: "8"
architectures: [amd64]
parts:
charm:
build-packages: [git]
Expand Down
6 changes: 6 additions & 0 deletions charm-slurmdbd/dispatch
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ then
echo "Running unsuppored version of centos: $major"
exit -1
fi
elif [[ $ID == 'rocky' ]]
then
dnf install epel-release -y
dnf install dnf-plugins-core -y
dnf config-manager --set-enabled powertools -y
dnf install make automake yum-utils -y
else
echo "Running unsuppored os: $ID"
exit -1
Expand Down
1 change: 1 addition & 0 deletions charm-slurmdbd/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ series:
- focal
- jammy
- centos7
- centos8

provides:
slurmdbd:
Expand Down
2 changes: 1 addition & 1 deletion charm-slurmdbd/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ops==1.3.0
git+https://github.com/omnivector-solutions/[email protected].13
git+https://github.com/omnivector-solutions/[email protected].15
3 changes: 3 additions & 0 deletions charm-slurmrestd/charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ bases:
- name: centos
channel: "7"
architectures: [amd64]
- name: centos
channel: "8"
architectures: [amd64]
parts:
charm:
build-packages: [git]
Expand Down
6 changes: 6 additions & 0 deletions charm-slurmrestd/dispatch
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ then
echo "Running unsuppored version of centos: $major"
exit -1
fi
elif [[ $ID == 'rocky' ]]
then
dnf install epel-release -y
dnf install dnf-plugins-core -y
dnf config-manager --set-enabled powertools -y
dnf install make automake yum-utils -y
else
echo "Running unsuppored os: $ID"
exit -1
Expand Down
1 change: 1 addition & 0 deletions charm-slurmrestd/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ series:
- focal
- jammy
- centos7
- centos8

provides:
slurmrestd:
Expand Down
2 changes: 1 addition & 1 deletion charm-slurmrestd/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ops==1.3.0
git+https://github.com/omnivector-solutions/[email protected].13
git+https://github.com/omnivector-solutions/[email protected].15

0 comments on commit a3aa5c4

Please sign in to comment.