Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
group8-iac
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
André Gärtner
group8-iac
Commits
b1007171
Commit
b1007171
authored
2 years ago
by
André Gärtner
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md again
parent
f80a2dfe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+0
-70
0 additions, 70 deletions
README.md
with
0 additions
and
70 deletions
README.md
+
0
−
70
View file @
b1007171
...
...
@@ -29,75 +29,5 @@ Agent: ssh -i ANDRGART.pem ubuntu@10.212.172.143
```
sudo -i puppetserver ca list
sudo -i puppetserver ca list --all
cd /etc/puppetlabs/code/environments/main
```
## Commands that run on the manager (via script)
```
sudo -i
wget https://apt.puppetlabs.com/puppet6-release-bionic.deb
dpkg -i puppet6-release-bionic.deb
apt-get update
apt-get install puppetserver -y
apt-get update
echo 'PATH=$PATH:/opt/puppetlabs/bin/' >> ~/.bashrc
. ~/.bashrc
echo "$(facter networking.ip) $(hostname).puppetlabs.vm $(hostname)" >> /etc/hosts
echo "$(facter networking.ip) puppet" >> /etc/hosts
puppetserver ca setup
puppet resource service puppetserver ensure=running enable=true
puppet --version #bør være 6.28.0
<> (MÅ FORTSATT VÆRE SUDO -i IKKE SUDO su)
ssh-keygen -f ~/.ssh/manager-key -C "manager-key"
echo "Host gitlab.stud.idi.ntnu.no
HostName gitlab.stud.idi.ntnu.no
Preferredauthentications publickey
StrictHostKeyChecking no
IdentityFile ~/.ssh/manager-key
" >> ~/.ssh/config
puppet module install --ignore-dependencies puppet-r10k
puppet module install --ignore-dependencies puppetlabs-ruby
puppet module install --ignore-dependencies puppetlabs-vcsrepo
puppet module install --ignore-dependencies puppetlabs-git
puppet module install --ignore-dependencies puppetlabs-stdlib
echo "class { 'r10k':
sources => {
'puppet' => {
'remote' => 'git@gitlab.stud.idi.ntnu.no:andrgart/control-repo.git',
'basedir' => '/etc/puppetlabs/code/environments',
'prefix' => false,
},
},
}" >> /var/tmp/r10k.pp
puppet apply /var/tmp/r10k.pp
r10k deploy environment -pv
```
## Commands that run on the agent (via script)
```
sudo -i
wget https://apt.puppetlabs.com/puppet6-release-bionic.deb
dpkg -i puppet6-release-bionic.deb
apt-get update
apt-get install puppet-agent -y
apt-get update
echo 'export PATH=$PATH:/opt/puppetlabs/bin/' >> ~/.bashrc
. ~/.bashrc
echo "$(/opt/puppetlabs/bin/facter networking.ip) $(hostname).beauvine.vm $(hostname)" >> /etc/hosts
#echo "manager_ip_address manager.puppetlabs.vm manager" >> /etc/hosts
/opt/puppetlabs/bin/puppet config set server manager.puppetlabs.vm --section main
/opt/puppetlabs/bin/puppet config set runinterval 300 --section main
/opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true
puppet agent -t
puppet --version #bør være 6.28.0
```
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