recentpopularlog in

kme : devops   119

« earlier  
Simple automated GIT Deployment using Hooks
I'm sure I've got a gist with something like this somewhere else (FIXME).

<code class="language-bash">#!/bin/bash

while read oldrev newrev ref
# only checking out the master (or whatever branch you would like to deploy)
if [ "$ref" = "refs/heads/$BRANCH" ];
echo "Ref $ref received. Deploying ${BRANCH} branch to production..."
git --work-tree=$TARGET --git-dir=$GIT_DIR checkout -f $BRANCH
echo "Ref $ref received. Doing nothing: only the ${BRANCH} branch may be deployed on this server."
git  githooks  deployment  webdevel  devops  automation  reference 
6 weeks ago by kme
Install Elasticsearch with RPM | Elasticsearch Reference [7.5] | Elastic
An alternative package which contains only features that are available under the Apache 2.0 license is also available. To install it, use the following baseurl in your elasticsearch.repo file:

Not positive how fussy GitLab is about the *exact* version (it says 5.6 - 6.x here -, but unsurprisingly you can get Elasticsearch 6.x OSS packages with this 'baseurl' instead:
sysadmin  devops  centos  centos6  centos7  elasticsearch  rpm  installation  howto  reference  solution 
december 2019 by kme
Learn from and celebrate great incident response teams -
HugOps is a movement to show support and empathy for the humans that work hard to keep your favorite services up and running. Help spread the HugOps love!
sysops  sysadmin  devops  downtime  forthehumans  hugops 
january 2019 by kme
How to Get Code into a Docker Container |
<code class="language-bash">
docker run -d -P --name <name of your container> -v /path/to/local/directory:/path/to/container/directory <image name> ...
docker  devops  sharedvolume  reference 
december 2018 by kme
Gitblit is an open-source, pure Java stack for managing, viewing, and serving Git repositories.

It's designed primarily as a tool for small workgroups who want to host centralized repositories.
git  hosting  server  java  devops  versioncontrol  alternativeto  gitlab  bitbucket  github  gog 
may 2017 by kme
How I spend my first 5 minutes on a server | Hacker News
You should never even have a "my first five minutes on a server" type thing anyway. Rolling out a new server should be fully automatically operationalized. The first time you log into the server, it should be completely ready to go. It should be ready to go without you needing to log into it at all. This takes a small amount of up-front effort, and will pay off immediately when you bring up your second server.
syadmin  devops  tipsandtricks  advice  bestpractices 
may 2017 by kme
Yelp/dumb-init: A minimal init system for Linux containers
Should allow child processes (e.g., a script running a Flask application) to receive signals; refer to for some background.
init  devops  docker  container  maybesolution 
march 2017 by kme
Template Designer Documentation — Jinja2 Documentation (2.8-dev)

Return the number of items of a sequence or mapping.
Aliases: count
ansible  provisioning  configfile  jinja2  devops  solution 
may 2016 by kme
How do I add sudo permissions to a user created with Ansible? - Server Fault
The solution in my case was actually 'append: yes'. I had another 'user:' play farther down in my playbook that was clobbering groups I'd set up above.
ansible  configfile  devops  automation  solution 
may 2016 by kme
YAML best practices for Ansible playbooks - tasks | Jeff Geerling
The only place where I can see the folded scalar approach being more helpful is for certain uses of the command and shell modules, where you need to pass in extra options:

- name: Install Drupal.
command: >
drush si -y
--site-name="{{ drupal_site_name }}"
--account-pass={{ drupal_admin_pass }}
--db-url=mysql://root@localhost/{{ domain }}
chdir={{ drupal_core_path }}
creates={{ drupal_core_path }}/sites/default/settings.php
ansible  yaml  bestpractices  styleguide  configfile  provisioning  sysadmin  devops  solution 
may 2016 by kme
How to move/rename a file using an Ansible task on a remote system - Stack Overflow

The file module doesn't copy files on the remote system. The src parameter is only used by the file module when creating a symlink to a file.

If you want to move/rename a file entirely on a remote system then your best bet is to use the command module to just invoke the appropriate command:

- name: Move foo to bar
command: mv /path/to/foo /path/to/bar

If you want to get fancy then you could first use the stat module to check that foo actually exists:

- name: stat foo
stat: path=/path/to/foo
register: foo_stat

- name: Move foo to bar
command: mv /path/to/foo /path/to/bar
when: foo_stat.stat.exists

ansible  sysadmin  devops  provisioning  solution 
may 2016 by kme
« earlier      
per page:    204080120160

Copy this bookmark:

to read