Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
magnum
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
kubernetes
magnum
Merge requests
!18
Swarm mode cern newton
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Swarm mode cern newton
swarm-mode-cern-newton
into
cern-newton
Overview
0
Commits
3
Pipelines
0
Changes
33
Merged
Spyridon Trigazis
requested to merge
swarm-mode-cern-newton
into
cern-newton
8 years ago
Overview
0
Commits
3
Pipelines
0
Changes
33
Expand
0
0
Merge request reports
Compare
cern-newton
version 3
c7c6c8f3
8 years ago
version 2
38bbd951
8 years ago
version 1
6b19413d
8 years ago
cern-newton (base)
and
latest version
latest version
6bd9bd41
3 commits,
8 years ago
version 3
c7c6c8f3
3 commits,
8 years ago
version 2
38bbd951
3 commits,
8 years ago
version 1
6b19413d
2 commits,
8 years ago
33 files
+
2506
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
33
Search (e.g. *.vue) (Ctrl+P)
magnum/drivers/common/templates/swarm/fragments/add-proxy.sh
0 → 100644
+
40
−
0
Options
#!/bin/sh
.
/etc/sysconfig/heat-params
DOCKER_PROXY_CONF
=
/etc/systemd/system/docker.service.d/proxy.conf
BASH_RC
=
/etc/bashrc
if
[
-n
"
$HTTP_PROXY
"
]
;
then
cat
<<
EOF
| sed "s/^ *//" >
$DOCKER_PROXY_CONF
[Service]
Environment=HTTP_PROXY=
$HTTP_PROXY
EOF
systemctl daemon-reload
systemctl
--no-block
restart docker.service
if
[
-f
"
$BASH_RC
"
]
;
then
echo
"declare -x http_proxy=
$HTTP_PROXY
"
>>
$BASH_RC
else
echo
"File
$BASH_RC
does not exist, not setting http_proxy"
fi
fi
if
[
-n
"
$HTTPS_PROXY
"
]
;
then
if
[
-f
$BASH_RC
]
;
then
echo
"declare -x https_proxy=
$HTTPS_PROXY
"
>>
$BASH_RC
else
echo
"File
$BASH_RC
does not exist, not setting https_proxy"
fi
fi
if
[
-f
"
$BASH_RC
"
]
;
then
if
[
-n
"
$NO_PROXY
"
]
;
then
echo
"declare -x no_proxy=
$NO_PROXY
"
>>
$BASH_RC
else
echo
"declare -x no_proxy=
$SWARM_API_IP
,
$ETCD_SERVER_IP
,
$SWARM_NODE_IP
"
>>
$BASH_RC
fi
else
echo
"File
$BASH_RC
does not exist, not setting no_proxy"
fi
Loading