lxc exec <container> -- dpkg-reconfigure locales
lxc exec <container> -- sudo dpkg-reconfigure tzdata
lxc config set <container> environment.LC_ALL ru_RU.UTF-8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| # update glibc to 2.17 for CentOS 6 | |
| wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm | |
| wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm | |
| wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm | |
| wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm | |
| sudo rpm -Uvh glibc-2.17-55.el6.x86_64.rpm \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: Ensure hostname set | |
| hostname: name={{ inventory_hostname }} | |
| when: not inventory_hostname|match('(\d{1,3}\.){3}\d{1,3}') | |
| - name: Ensure hostname is in /etc/hosts | |
| lineinfile: | |
| dest=/etc/hosts | |
| regexp="^{{ ansible_default_ipv4.address }}.+$" | |
| line="{{ ansible_default_ipv4.address }} {{ ansible_fqdn }} {{ ansible_hostname }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo mv /opt/1C/v8.3/i386/libstdc++.so.6 /opt/1C/v8.3/i386/libstdc++.so.6.orig | |
| sudo ln -s /usr/lib/i386-linux-gnu/libstdc++.so.6.0.24 /opt/1C/v8.3/i386/libstdc++.so.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # | |
| # Example vagrant greate multi-box vms | |
| # | |
| # ---- Configuration variables ---- | |
| servers=[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ansible-playbook | |
| - name: Test | |
| hosts: all | |
| serial: 1 | |
| order: sorted | |
| gather_facts: no | |
| tasks: | |
| - debug: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - hosts: all | |
| gather_facts: False | |
| become: yes | |
| pre_tasks: | |
| - name: Install python for Ansible | |
| raw: bash -c "test -e /usr/bin/python || (apt -qqy update && apt install -qqy python-minimal)" | |
| register: output | |
| changed_when: output.stdout != "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lxc config set u3 security.privileged true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for hostdir in /sys/class/scsi_host/host*; do | |
| echo "- - -" > $hostdir/scan | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - set_fact: | |
| result: {} | |
| - name: Get uname -a | |
| raw: uname -a | |
| register: uname | |
| - debug: | |
| var: uname |
OlderNewer