Installing puppetmaster/puppet server in ubuntu - puppet

I was trying to install puppet 5(opensource) set up in ubuntu 18(bionic) machines.
But i cannot see puppetserver package available in ubuntu 18 repo and can see puppet-master package.As per puppet documentation puppet master is deprecated.Still i can add the puppet repo and install puppetserver.
1.Is there any reason why ubuntu repo is not having puppetserver package.
2.Can i use puppet-master instead of puppetserver for puppet 5.

yeah I had the same issue and answering to your questions below:
.Is there any reason why ubuntu repo is not having puppetserver package. It is having the package puppetserver on Ubuntu 18 LTS bionic :
root#test-l1-ubuntu1804:~# cat /etc/issue
Ubuntu 18.04.2 LTS \n \l
root#test-l1-ubuntu1804:~# apt-cache search puppetserver
puppetserver - Puppet Labs puppetserver. Contains: Puppet Server (puppetlabs/puppetserver 6.2.1,org.clojure/clojure 1.10.0,org.clojure/clojurescript 1.10.238,puppetlabs/puppetserver 6.2.1,puppetlabs/trapperkeeper-webserver-jetty9 2.3.1)
root#test-l1-ubuntu1804:~#
The trick is to enable the universe repository althought you have it in your /etc/apt/source.list with sudo add-apt-repository universe
Can i use puppet-master instead of puppetserver for puppet 5 . Yes you can use the package puppet-master.. I am using it :)
#John Bollinger - for everything is a documentation so if you do not help then why comment what you do not know

I believe that puppetserver is the puppetlabs version and puppetmaster is the apache/passenger version of puppet. I prefer working with puppetlabs, but it is not part of the standard ubuntu repo. We have to wget the puppetlabs package, install the deb with dpkg and do an apt update for all machines to get the puppetlabs repo. However puppetmaster will work fine too.

Related

How to upgrade GitLab CE from Ubuntu 16.04 to Ubuntu 18.04?

Can someone explain me how I can upgrade a running gitlab CE on Ubuntu 16.04 to Ubuntu 18.04?
I could not find any relevant documentation for this upgrade path
It is clear to upgrade ubuntu with
sudo apt update
sudo apt upgrade
sudo do-release-upgrade
But what is needed to tell rerun the setup/upgrade on gitlab?
If you upgrade your Ubuntu Version from 16.04 to 18.04, you also need to alter the repository path for debian packages provided by GitLab Inc.
If you inspect the installation/configuration script available on GitLab.com, you will see that there should be a file in /etc/apt/sources.list.d/ which contains gitlab in its filename.
Simply replace its content with the following lines:
deb https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu/ bionic main
deb-src https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu/ bionic main
You are now able to upgrade GitLab using the new package repository for your upgraded Ubuntu System:
sudo apt update
sudo apt upgrade
If you mean update Ubuntu from 16.04 to 18.04 then here's the steps:
I did that a couple of days ago.
lsb_release -a # This is just to check the. Ubuntu version
sudo apt update
sudo apt upgrade
This will make sure that you have all the packages updated. The upgrade will not start if you don't have them upgraded.
Then for the actual upgrade
sudo do-release-upgrade
NOTE
1 - The above command might fail because "you have to upgrade all the packages before" please inspect the output of sudo apt upgrade maybe you have a dependency issue & not all the packages are upgraded
2- Please make sure you have all your data backed up before doing the upgrade. I'm assuming that you doing the upgrade via SSH which may be troublesome.
For me, the upgrade got stuck while trying to update the openSSH config files. What I did is that I closed the current SSH session ( tmux ) opened a new session & rebooted the server.
After the server is rebooted
lsb_release -a
Should show
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

Installing a handmade puppet module changed in Debian stretch

In debian jessie, I used to install my own handmyde puppet module in a subfolder in /etc/puppet/modules. I simply created a foder there with git:
cd /etc/puppet/modules
git clone https://github.com/ffnord/ffnord-puppet-gateway ffnord
from then on, I could use the module ffnord in my puppet scripts.
This does not work in Debian stretch any more. How can I install my module in Debaian 9?
The modules folder changed to
/etc/puppet/code/modules
You find out with
$ sudo puppet config print modulepath
/etc/puppet/code/modules:/usr/share/puppet/modules
A better path would be /usr/share/puppet/modules.
see https://puppet.com/docs/puppet/4.10/dirs_modulepath.html

How to install JavaPackage on ubuntu

I came across a debian application by the name JavaPackage which can create a debian installation file (.deb) form a java binary (.tar.gz) which you can then install using dpkg -i application_name.deb. With Ubuntu being a debian-based linux distribution, it is possible that it can be installed on ubuntu as well.
How do I go about installing it on Ubuntu/Kubuntu 16.04.2 LTS?
java-package is available in the official ubuntu repositories. All you need to do is update the repository with the latest version then install it as shown below:
sudo apt-get update
sudo apt-get install java-package

Ansible + why yum not install the latest version

I am installed successfully the ansible tool from yum repository as
yuminstallansible
ansible is great tool even more then puppet
From site - http://docs.ansible.com/ansible/intro_installation.html#getting-ansible
but after yum installation I see that the ansible isn’t the latest version
ansible--version
ansible1.1
Ansible releases - https://github.com/ansible/ansible/releases
please advice why yum not install the latest ansible version ( 1.9 )
You must configure EPEL first: https://dl.fedoraproject.org/pub/epel/7/x86_64/repoview/ansible.html
It may be better to install Ansible with pip.
pip will get you the latest version much more quickly than yum

Puppet Master install

I am using below release of redhat
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
I am trying to install puppet master on this server.
Here is what I did:
rpm --quiet -ivh http://yum.puppetlabs.com/el/6/products/x86_64//puppetlabs-release-6-10.noarch.rpm
yum install puppet-master
Setting up Install Process
No package puppet-master available.
Error: Nothing to do
I guess I need different package than what I have, Could someone point me to right direction here.
Thanks for your help.
Looks like you might have a typo in the URL you used.
rpm -ivh http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-10.noarch.rpm
yum install -y puppet-server puppet facter
The package is puppet-server not puppet-master
sudo yum install puppet-server

Resources