Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
inetstation
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ccc-ffm
inetstation
Commits
26d69c2d
Commit
26d69c2d
authored
9 years ago
by
wonko
Browse files
Options
Downloads
Patches
Plain Diff
added facter facts upload and curl install
parent
b6d681c6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bootstrap.sh
+16
-7
16 additions, 7 deletions
bootstrap.sh
with
16 additions
and
7 deletions
bootstrap.sh
+
16
−
7
View file @
26d69c2d
#!/bin/bash -x
GITPROJ
=
https://chaos.expert/ccc-ffm/4Refugees-InternetCafe
ATHQ
=
false
HQSERVER
=
"install.hq"
PROXYURL
=
"http://
${
HQSERVER
}
:8080/"
if
[
"
$1
"
!=
"RUNME"
]
;
then
#pull myself from git repo
...
...
@@ -13,16 +14,19 @@ if [ "$1" != "RUNME" ]; then
fi
#check for install.hq
if
ping
-c
5 install.hq
;
then
echo
'Acquire::http::Proxy "http://install.hq:8080/";'
>
/etc/apt/apt.conf
facter
--yaml
/tmp/facts.yaml
curl
-T
/tmp/facts.yaml ftp://install.hq/refugee-notebooks/
${
HOSTNAME
}
.yaml
if
ping
-c
5
${
HQSERVER
}
;
then
ATHQ
=
true
fi
if
[
"
$ATHQ
"
=
true
]
;
then
echo
'Acquire::http::Proxy "${PROXYURL}";'
>
/etc/apt/apt.conf
else
echo
"#no proxy"
>
/etc/apt/apt.conf
fi
apt update
apt
install
git puppet vim
apt
install
git puppet vim
curl
apt full-upgrade
...
...
@@ -39,3 +43,8 @@ git submodule init
git submodule update
git pull
puppet apply /etc/puppet/manifests/site.pp
if
[
"
$ATHQ
"
=
true
]
;
then
facter
--yaml
/tmp/facts.yaml
curl
-T
/tmp/facts.yaml ftp://
${
HQSERVER
}
/refugee-notebooks/
${
HOSTNAME
}
.yaml
fi
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