Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-registry
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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DEPEND
docker-registry
Commits
921d6817
Commit
921d6817
authored
5 years ago
by
saurabhjha1
Browse files
Options
Downloads
Patches
Plain Diff
redhat machines
parent
0f357fcf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
copy_keys.sh
+26
-0
26 additions, 0 deletions
copy_keys.sh
docker-gc/clean_docker_all_machines.sh
+1
-1
1 addition, 1 deletion
docker-gc/clean_docker_all_machines.sh
generate_keys.sh
+0
-12
0 additions, 12 deletions
generate_keys.sh
with
27 additions
and
13 deletions
copy_keys.sh
0 → 100644
+
26
−
0
View file @
921d6817
#! /bin/bash
CERTDIR
=
"/scratch/docker-registry/certs"
# Update CA certs on all nodes
declare
-a
hosts
=(
"dvorak.maas"
"dvorak-1-1.maas"
"dvorak-1-2.maas"
"dvorak-1-3.maas"
"dvorak-1-4.maas"
"dvorak-2-1.maas"
"dvorak-2-2.maas"
"dvorak-2-3.maas"
"dvorak-2-4.maas"
"brahms-02.maas"
"brahms-03.maas"
"brahms-04.maas"
"brahms-05.maas"
"tuleta.maas"
)
for
h
in
"
${
hosts
[@]
}
"
do
echo
$h
scp
${
CERTDIR
}
/dockerCA.crt ubuntu@
${
h
}
:
ssh
-t
ubuntu@
${
h
}
"sudo mv ~/dockerCA.crt /usr/local/share/ca-certificates/"
ssh
-t
ubuntu@
${
h
}
"sudo update-ca-certificates"
ssh
-t
ubuntu@
${
h
}
"sudo service docker restart"
done
# Redhat machines
declare
-a
hosts
=(
"bach.maas"
)
for
h
in
"
${
hosts
[@]
}
"
do
echo
$h
scp
${
CERTDIR
}
/dockerCA.crt ubuntu@
${
h
}
:
ssh
-t
redhat@
${
h
}
"sudo mv ~/dockerCA.crt /etc/pki/ca-trust/source/"
ssh
-t
redhat
${
h
}
"sudo update-ca-trust extract"
ssh
-t
redhat@
${
h
}
"sudo service docker restart"
done
This diff is collapsed.
Click to expand it.
docker-gc/clean_docker_all_machines.sh
+
1
−
1
View file @
921d6817
...
...
@@ -11,7 +11,7 @@ done
# Clean IBM Machines
declare
-a
hosts
=(
"brahms-02.maas"
"brahms-03.maas"
"brahms-04.maas"
"brahms-05.maas"
"tuleta.maas"
)
declare
-a
hosts
=(
"brahms-02.maas"
"brahms-03.maas"
"brahms-04.maas"
"brahms-05.maas"
"tuleta.maas"
"bach.maas"
)
for
h
in
"
${
hosts
[@]
}
"
do
echo
$h
...
...
This diff is collapsed.
Click to expand it.
generate_keys.sh
+
0
−
12
View file @
921d6817
...
...
@@ -20,15 +20,3 @@ openssl req -new -key ${CERTDIR}/domain.key -out ${CERTDIR}/${DOMAIN}.csr
# Sign certificate
openssl x509
-req
-in
${
CERTDIR
}
/
${
DOMAIN
}
.csr
-CA
${
CERTDIR
}
/dockerCA.crt
-CAkey
${
CERTDIR
}
/dockerCA.key
-CAcreateserial
-out
${
CERTDIR
}
/domain.crt
-days
10000
# Update CA certs on all nodes
declare
-a
hosts
=(
"dvorak.maas"
"dvorak-1-1.maas"
"dvorak-1-2.maas"
"dvorak-1-3.maas"
"dvorak-1-4.maas"
"dvorak-2-1.maas"
"dvorak-2-2.maas"
"dvorak-2-3.maas"
"dvorak-2-4.maas"
"brahms-02.maas"
"brahms-03.maas"
"brahms-04.maas"
"brahms-05.maas"
"tuleta.maas"
)
for
h
in
"
${
hosts
[@]
}
"
do
echo
$h
scp
${
CERTDIR
}
/dockerCA.crt ubuntu@
${
h
}
:
ssh
-t
ubuntu@
${
h
}
"sudo mv ~/dockerCA.crt /usr/local/share/ca-certificates/"
ssh
-t
ubuntu@
${
h
}
"sudo update-ca-certificates"
ssh
-t
ubuntu@
${
h
}
"sudo service docker restart"
done
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