- install sdk
- configure kubectl:
Здесь я буду для себя выкладывать небольшие заметки по администрированию linux-систем.
Tuesday, 11 October 2016
Configuring Google Cloud SDK and kubectl
Saturday, 13 August 2016
Koji build system
There are many ways you can create RPM packages for your code.
If you are an open source project you can always use Copr. It is very easy to get started with.
But when you want to build RPM packages for company’s closed source projects you don’t have much of a choice:
- OBS
- Koji
OBS
OBS forces you to download appliance with OpenSUSE on-board. So you have to learn how OpenSUSE operates. Over seven years I’ve been working in Rhel/CentOS environments and that’s why OBS was not an option for me.
But OBS can build for many platforms.
Luckily for me, the team I currently work in, needs to build packages just for CentOS6/7.
Koji
Koji is the software that builds RPM packages for the Fedora project.
Koji heavily uses existing tools:
- mock
- yum
- rpmbuild
- createrepo
Koji is not that easy to deploy and to understand the terminology.
I found those blog posts to be very useful.
Also there are very useful videos:
- Building RPMS: How Fedora’s Koji Works by Dennis Gilmore who is Fedora Release Engineering Lead
- CentOS: Community build service by Thomas Oulevey who is System Engineer at CERN
Because Ansible is the new sexy, I’ve developed a bunch of roles used to deploy an all-in-one PoC setup of Koji.
For creating SRPMs and submitting tasks to Koji we use tito configured to utilize KojiReleaser.
Friday, 19 February 2016
IBM: disable pxebooting on NICs
I needed to change
system> asu show BroadcomGigabitEthernet*.LegacyBootProtocol
BroadcomGigabitEthernetBCM5719-40F2E9BA7038.LegacyBootProtocol=PXE
BroadcomGigabitEthernetBCM5719-40F2E9BA7039.LegacyBootProtocol=NONE
BroadcomGigabitEthernetBCM5719-40F2E9BA703A.LegacyBootProtocol=NONE
BroadcomGigabitEthernetBCM5719-40F2E9BA703B.LegacyBootProtocol=NONE
Thursday, 15 January 2015
PXELinux global default
MENU LABEL Foreman Discovery
MENU DEFAULT
KERNEL boot/fdi-image/vmlinuz0
APPEND rootflags=loop initrd=boot/fdi-image/initrd0.img root=live:/fdi.iso foreman.url=https://url rootfstype=auto ro rd.live.image rd.lvm=0 rootflags=ro crashkernel=128M
elevator=deadline max_loop=256 rd.luks=0 rd.md=0 rd.dm=0 nomodeset selinux=0 stateless
IPAPPEND 2
Saturday, 13 December 2014
foreman rhev-h autoinstall
TIMEOUT 20
PROMPT 0
LABEL ovirt
KERNEL boot/vmlinuz0
APPEND rootflags=loop initrd=boot/initrd0.img root=live:/rhevh-6.5-20140930.1.el6ev.iso BOOTIF=link storage_init rootfstype=auto ro liveimg check local_boot_trigger=<%= foreman_url("built") %> management_server=rhevm.example.com:443 rhevm_admin_password=$1$1OIs7Iry$7iD0YeFzWMlphfu7ar1 adminpw=$1$1OIs7Iry$7iD0YeFMlphf7Or1 ssh_pwauth=1 hostname=<%= @host %> ip=<%=@host.ip %> netmask=<%=@host.subnet.mask %> gateway=<%=@host.subnet.gateway %> dns=<%=[@host.subnet.dns_primary,@host.subnet.dns_secondary].reject{|n| n.blank?}.join(',')%> ntp=ntp.ix.ru RD_NO_LVM rd_NO_MULTIPATH rootflags=ro crashkernel=128M elevator=deadline reinstall max_loop=256 rd_NO_LUKS rd_NO_MD rd_NO_DM
Tuesday, 5 August 2014
Как узнать Host ID при работе через FC
[root@c1 ~]# systool -c fc_host -v | grep port_name
port_name = "0x5001438026682306"
[root@c1 ~]#