Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
autoradio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
ale
autoradio
Commits
0c2d7268
Commit
0c2d7268
authored
9 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
fix the etcd configuration for the stock Debian package
parent
4ed91bde
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vagrant-test/Vagrantfile
+0
-12
0 additions, 12 deletions
vagrant-test/Vagrantfile
vagrant-test/bootstrap.sh
+10
-0
10 additions, 0 deletions
vagrant-test/bootstrap.sh
with
10 additions
and
12 deletions
vagrant-test/Vagrantfile
+
0
−
12
View file @
0c2d7268
...
...
@@ -23,15 +23,6 @@ cat >/etc/hosts <<EOF
EOF
SCRIPT
# Static configuration for etcd.
$setup_etcd
=
<<
SCRIPT
cat >/etc/default/etcd <<EOF
START=1
ETCD_INITIAL_CLUSTER_STATE=new
ETCD_INITIAL_CLUSTER=node1=http://192.168.50.2:2380,node2=http://192.168.50.3:2380,node3=http://192.168.50.4:2380
EOF
SCRIPT
# Setup apt proxy.
$setup_apt_proxy
=
<<
SCRIPT
cat >/etc/apt/apt.conf.d/000apt-proxy <<EOF
...
...
@@ -58,19 +49,16 @@ Vagrant.configure(API_VERSION) do |config|
config
.
vm
.
define
"node1"
do
|
m
|
m
.
vm
.
hostname
=
"node1"
m
.
vm
.
network
"private_network"
,
ip:
"192.168.50.2"
m
.
vm
.
provision
"shell"
,
inline:
$setup_etcd
end
config
.
vm
.
define
"node2"
do
|
m
|
m
.
vm
.
hostname
=
"node2"
m
.
vm
.
network
"private_network"
,
ip:
"192.168.50.3"
m
.
vm
.
provision
"shell"
,
inline:
$setup_etcd
end
config
.
vm
.
define
"node3"
do
|
m
|
m
.
vm
.
hostname
=
"node3"
m
.
vm
.
network
"private_network"
,
ip:
"192.168.50.4"
m
.
vm
.
provision
"shell"
,
inline:
$setup_etcd
# Create a test mountpoint.
m
.
vm
.
provision
"shell"
,
...
...
This diff is collapsed.
Click to expand it.
vagrant-test/bootstrap.sh
+
10
−
0
View file @
0c2d7268
...
...
@@ -35,6 +35,16 @@ GROUPID=icecast
ENABLE=true
EOF
cat
>
/etc/default/etcd
<<
EOF
ETCD_LISTEN_PEER_URLS=http://0.0.0.0:2380
ETCD_INITIAL_ADVERTISE_PEER_URLS=http://
$(
hostname
-s
)
:2380
ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
ETCD_ADVERTISE_CLIENT_URLS=http://
$(
hostname
-s
)
:2379
ETCD_INITIAL_CLUSTER_STATE=new
#ETCD_INITIAL_CLUSTER=node1=http://192.168.50.2:2380,node2=http://192.168.50.3:2380,node3=http://192.168.50.4:2380
ETCD_INITIAL_CLUSTER=node1=http://node1:2380,node2=http://node2:2380,node3=http://node3:2380
EOF
# Install the required packages.
export
DEBIAN_FRONTEND
=
noninteractive
apt-get
-qq
update
...
...
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