Puppet Openstack Havana HA package dependency - puppet

I am new to puppet as well as Openstack.
Can any one explain how the package dependency is taken care in cisco-puppet.
When I did the manual HA setup by following cisco-openstack HA, everything went fine.
I am wondering how and where the steps like:
deb http://openstack-repo.cisco.com/openstack/cisco havana-proposed main
deb-src http://openstack-repo.cisco.com/openstack/cisco havana-proposed main
:
:
and
apt-get install -y swift-account swift-container swift-object xfsprogs parted
apt-get install -y swift-proxy memcached python-keystoneclient python-swiftclient swift-plugin-s3
are being done in the puppet script in the link above ?
Thanks in advance for help.

Related

unable to find package when apt install

I failed to find the package when I want to install libdlib-dev.I have run apt update and I also change the server.Both of them don't work.My system is ubuntu 14.04.
apt failed info
The package libdlib-dev isn't available for Ubutnu 14.04.It is only available for xenial, artful, bionic and cosmic.
see Package: libdlib-dev
Welcome to stackoverflow David
Usually adding the respective repository before installation helps solve the issue
Try finding the repo and use the commands below
sudo add-apt-repository repo-name
sudo apt-get update
sudo apt install package-name
if not, you can go through this link http://www.iasptk.com/ubuntu-fix-broken-package-best-solution/ , might help you fix the issue.
Feel free to ask if any clarification needed

Install gitlab-ce on ubuntu server 17.04

I'm trying to install the gitlab-ce package on a system running Ubuntu server 17.04. I followed the official installation instructions here.
First I ran:
sudo apt-get install curl openssh-server ca-certificates postfix
I already had all of those installed. Then I ran:
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
Which also worked fine. But when I try to run
sudo apt-get install gitlab-ce
I get the following error message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gitlab-ce
I know it's possible to install gitlab on Ubuntu server 17.04, since I had already done It on a previous installation. Unfortunately I installed the OS again from scratch and I can't remember how I had installed gitlab.
Thanks for any help in advance!
I gave up with the "full" automated script, as it doesn't appear to be working with 17.04... Anyway. I grabbed the latest package from https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/xenial/gitlab-ce_9.3.0-ce.0_amd64.deb
curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/xenial/gitlab-ce_9.3.0-ce.0_amd64.deb/download
Installed it with the package manager
sudo dpkg -i gitlab-ce_9.3.0-ce.0_amd64.deb
Then configured it with
sudo gitlab-ctl reconfigure
Then, point your web browser at your new gitlab install and you should be good to go...
Ubuntu 20.04.1
Incase anyone bumps back into this, while trying to gitlab on version 20.0.4 of ubuntu, life is much easier... and the instructions and automated script actually work. GitLab-CE installation instructions
on a fresh install of ubuntu: -
sudo apt install curl
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab- ce/script.deb.sh | sudo bash
sudo apt install gitlab-ce
done!
I was facing the same problem (Lubuntu 17.10), after searching the gitlab forums for 2 Hours, I found this thread.
So from what I have read: Gitlab-ce is not supported for zesty yet. Also the simple
sudo apt-get install gitlab
is a wrong prompt cause it installs a Ubuntu package created by a user named as "praveen" and It is not officially supported by Gitlab.
here is what I did To solve my problem:
sudo nano /etc/apt/sources.list.d/gitlab_gitlab-ce.list.save
sudo nano /etc/apt/sources.list.d/gitlab_gitlab-ce.list
replace "zesty" with "xenial" (These files are root access only)
sudo apt update
sudo apt-get install gitlab-ce
This worked for me.
I have spent my whole afternoon for solving this problem, I hope this solution works for you too.
Prost !
EDIT: corrected spelling
I had the same problem getting the install to run on 17.10. According to an issue on their site ( https://gitlab.com/gitlab-org/gitlab-runner/issues/2851 ), the artful packages are not being built.
I did the same this as #DevX, but just changed the parameters on their setup script.
Howler#GitLab:/tmp$ curl -LO https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh
Howler#GitLab:/tmp$ sudo os=ubuntu dist=xenial bash ./script.deb.sh
Howler#GitLab:/tmp$ sudo apt-get install gitlab-ce

puppet master fresh installation error

puppet master was working fine in my ubuntu 12.04 server. Today I uninstalled it using the following commands and made a fresh install again. After a fresh install, puppet master failed to start.
sudo apt-get remove puppetmaster-common
sudo apt-get remove --auto-remove puppetmaster-common
sudo apt-get purge puppetmaster-common
sudo apt-get purge --auto-remove puppetmaster-common
sudo apt-get remove puppet
sudo apt-get remove --auto-remove puppet
sudo apt-get purge puppet
sudo apt-get purge --auto-remove puppet
After a fresh install, it's totally stopped working and I am getting the below errors in log
Could not autoload puppet/type/user: Could not autoload
puppet/provider/user/directoryservice: cannot load such file
Could not autoload puppet/provider/user/directoryservice: cannot load
such file -- plist
Could not autoload puppet/type/user: Could not autoload
puppet/provider/user/directoryservice: cannot load such file
Could not create resources for managing Puppet's files and directories
in sections [:main, :master, :ssl, :metrics]
Could not prepare for execution: Could not create resources for
managing Puppet's files and directories in sections
Also, there is no puppet.conf file exists in /etc/puppet/puppet.conf location even after fresh install. I tried installing twice and I couldn't see this file getting generated.
Puppet version 3.8.5.
Ubuntu : 12.04 version
Could someone help me to resolve this issue?
Matt, I figured it out finally.
I just removed the existing apt repository by manually deleting the entries in
/etc/apt/sources.list.d
and removed puppetlabls-pc1.list, puppet.list, puppet.save, all entries related to puppet and then invoked
sudo apt-get update
And installed puppet master once again without appending any additional apt repos
sudo apt-get -y install puppetmaster
I think I was using wrong apt source. It wasn't generating puppet.conf file at all. May be thats the reason why I was getting weired errors like that

Can't find gitlab-ci-multi-runner package

I'm trying to install gitlab-ci-multi-runner on ElementaryOS Freya, but having no success.
I've correctly follow the steps in official documentation:
https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/linux-repository.md#install-using-official-gitlab-repositories
The answer always is:
luiz#kryptonita:~/node/my-nodejs-app$ sudo apt-get install gitlab-ci-multi-runner
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gitlab-ci-multi-runner
To understand: I'm trying to set up a Runner to test a Node.js "Hello World". I'm studying this technology.
EDIT: Result of cat /etc/apt/sources.list.d/runner_gitlab-ci-multi-runner.list
# this file was generated by packages.gitlab.com for
# the repository at https://packages.gitlab.com/runner/gitlab-ci-multi-runner
deb https://packages.gitlab.com/runner/gitlab-ci-multi-runner/elementaryos/ freya main
deb-src https://packages.gitlab.com/runner/gitlab-ci-multi-runner/elementaryos/ freya main
Indeed they do not have repos for elementary os freya. I see two possible solutions:
Method 1: Using Ubuntu Repos
Now, I'm not sure this procedure works, but since freya is bases on Ubuntu 14.04, I think you can use trusty's repo.
Careful this can potentially breaks things and dependencies, I have not tested it.
Edit the /etc/apt/sources.list.d/runner_gitlab-ci-multi-runner.list file:
sudo gedit /etc/apt/sources.list.d/runner_gitlab-ci-multi-runner.list
Delete all and add
deb https://packages.gitlab.com/runner/gitlab-ci-multi-runner/ubuntu/ trusty main
deb-src https://packages.gitlab.com/runner/gitlab-ci-multi-runner/ubuntu/ trusty main
Then do sudo apt-get update && sudo apt-get install gitlab-ci-multi-runner
In this way you have automatic updates.
Method 2: Manually download the package
If you prefer to do not add a PPA studied for another distro, just download the package from the website (here a list of the packages). but in this way you have to manually update the program each time!
Otherwise you can use docker/lxc/virtualbox to install Ubuntu (or Fedora or whatever is official supported) and use it
Only this worked for me:
curl -s https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash
From: https://packages.gitlab.com/runner/gitlab-ci-multi-runner/install

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