Travel around the world

How to Create and enforce Github branch protection rules for Organization. Best Practice

git branches

We are going to enforce the Git Best Practice branch's protection rules and recommendaions for GitHub Organization repositories.

Also we will automate a proces of adding and updating teams and branch protection rules to GitHub Organization repository.

There is the same way to apply branch protection and recommendaions to private (non-organization GitHub repositories but you need to modify the automation scipts). Also some options are not available for non-organization GitHub repositories.

 

 

 

 

Read more ...

Joshua Tree National park.

Национальный парк Joshua TreeAnd once again, we make our journrey with friends, to Joshua Tree National Park

We make our way down here every year, on the last weekend of May, so that we can experience the desert heat, rock climb on real rocks, take some time away from work, and spend our time with good people. On this trip, our whole family came, along with Boris, Natasha, Yulia, Victor Zybin, Kirk + Caren, Gina + Steven, Mónica + Nuno, Brian, Maya + Steve (this is so I don't forget). 
What is Joshua Tree National Park? This is a part of the top of the Mojave Desert - a plateau resting at 1200 meters above sea level, with the temperature lower by 5-10 C, than in the lower part of Mojave Desert. 

What is the Mojave Desert. It is a small desert in North America, where many Hollywood movies were filmed. So, if you see a Hollywood movie with a desert, moon, The Martian - then it was in the Mojave Desert, since Los Angeles and Hollywood are only a one hour drive away. Top Gun was also filmed here. 

Read more ...

Isla del Sol - no way to avoid to take a money

Isla del Sol - hike trail

The island Isla del Sol located in the southern part of lake Titicaca at an elevation of 3800 meters above sea level. The island is divided in two parts – the north end the south community. We landed on the north part of the island near the village Challapampa. Challapampa bay is very big and beautiful, with clean calm blue water. There were several cafes on the beach where we had breakfast. The trail started from the beach near a small museum with ancient ceramics and bones in glass cases.

 
 

Then the surprises started. Near the museum stood a man who asked us for tickets to go on a trail, but the museum was free. We bought two tickets for 10 Soles and continued on our way. The trail went near a school, between houses and terraced fields. Near the school an old lady in traditional dresse checked our tickets and wished us good luck.

Read more ...
Пошаговая становка и настройка Puppet на двух Ubuntu хостах.


MASTER

cd ~; wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb
sudo dpkg -i puppetlabs-release-trusty.deb
sudo apt-get update
sudo apt-get install puppetmaster-passenger
sudo service apache2 stop
sed -e '/templatedir/ s/^#*/#/' -i.back /etc/puppet/puppet.conf
puppet help | tail -n 1
sudo nano /etc/apt/preferences.d/00-puppet.pref

	# /etc/apt/preferences.d/00-puppet.pref
	Package: puppet puppet-common puppetmaster-passenger
	Pin: version 3.6*
	Pin-Priority: 501

sudo rm -rf /var/lib/puppet/ssl

sudo nano /etc/puppet/puppet.conf

	[main]
	logdir=/var/log/puppet
	vardir=/var/lib/puppet
	ssldir=/var/lib/puppet/ssl
	rundir=/var/run/puppet
	factpath=$vardir/lib/facter
	#templatedir=$confdir/templates
	certname = puppet
	# server.us-west-1.compute.amazonaws.com - FQDN name
dns_alt_names = puppet,server.us-west-1.compute.amazonaws.com
[master] # These are needed when the puppetmaster is run by passenger # and can safely be removed if webrick is used. ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY sudo puppet master --verbose --no-daemonize sudo puppet cert list -all sudo cat /etc/puppet/puppet.conf sudo touch /etc/puppet/manifests/site.pp sudo service apache2 start AGENT cd ~; wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb sudo dpkg -i puppetlabs-release-trusty.deb sudo apt-get update sudo apt-get install puppet sudo nano /etc/default/puppet START=yes sudo nano /etc/apt/preferences.d/00-puppet.pref # /etc/apt/preferences.d/00-puppet.pref Package: puppet puppet-common Pin: version 3.6* Pin-Priority: 501 sudo nano /etc/puppet/puppet.conf [agent] server = server.us-west-1.compute.amazonaws.com sudo service puppet start MASTER sudo puppet cert list #When the puppetmaster server certificates are generated they are named puppet.pem #in stead of puppetmaster.domain.tld.pem because the certname = puppet in #/etc/puppet/puppet.conf. nano /etc/apache2/sites-enabled/puppetmaster.conf sudo puppet cert sign client.us-west-1.compute.internal or sudo puppet cert sign --all facter AGENT sudo puppet agent --test MASTER sudo puppet module install puppetlabs-apache sudo nano /etc/puppet/manifests/site.pp file {'/tmp/example-ip': # resource type file and filename ensure => present, # make sure it exists mode => 0644, # file permissions content => "Here is my Public IP Address: ${ipaddress_eth0}.\n", # note the ipaddress_eth0 fact } node 'client.us-west-1.compute.internal' { # applies to client.us-west-1.compute.internal node class { 'apache': } # use apache module apache::vhost { 'example.com': # define vhost resource port => '80', docroot => '/var/www/html' } } node default {} # applies to nodes that aren't explicitly defined AGENT sudo puppet agent --test

Add comment


Security code
Refresh