Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yomi-formula for openSUSE:Factory checked in at 2021-05-02 18:35:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yomi-formula (Old) and /work/SRC/openSUSE:Factory/.yomi-formula.new.1947 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yomi-formula" Sun May 2 18:35:12 2021 rev:21 rq:889512 version:0.0.1+git.1619170188.fa52819 Changes: -------- --- /work/SRC/openSUSE:Factory/yomi-formula/yomi-formula.changes 2020-12-23 14:20:58.573710158 +0100 +++ /work/SRC/openSUSE:Factory/.yomi-formula.new.1947/yomi-formula.changes 2021-05-02 18:35:18.745153267 +0200 @@ -1,0 +2,19 @@ +Fri Apr 23 09:30:17 UTC 2021 - Alberto Planas Dominguez <[email protected]> + +- Update to version 0.0.1+git.1619170188.fa52819: + * README: document ym.sshd parameter + +------------------------------------------------------------------- +Thu Feb 25 17:55:47 UTC 2021 - Alberto Planas Dominguez <[email protected]> + +- Update to version 0.0.1+git.1614275707.786435e: + * pillar: update to SLE-15-SP2 + * fstab: do not mount while registering + * devices: fix documentation + * Adding a TOC + * software: add recreatedb.sls for rpmdb migration + * repository: workaround for boo#1178910 + * software: separate repository.sls + * network: generate persistent-net.rules + +------------------------------------------------------------------- Old: ---- yomi-0.0.1+git.1604593202.a2c22bf.obscpio New: ---- yomi-0.0.1+git.1619170188.fa52819.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yomi-formula.spec ++++++ --- /var/tmp/diff_new_pack.VciUm9/_old 2021-05-02 18:35:19.565149774 +0200 +++ /var/tmp/diff_new_pack.VciUm9/_new 2021-05-02 18:35:19.565149774 +0200 @@ -1,7 +1,7 @@ # # spec file for package yomi-formula # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %define fname yomi %define fdir %{_datadir}/salt-formulas Name: yomi-formula -Version: 0.0.1+git.1604593202.a2c22bf +Version: 0.0.1+git.1619170188.fa52819 Release: 0 Summary: Yomi - Yet one more installer License: Apache-2.0 ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.VciUm9/_old 2021-05-02 18:35:19.597149638 +0200 +++ /var/tmp/diff_new_pack.VciUm9/_new 2021-05-02 18:35:19.597149638 +0200 @@ -1,4 +1,4 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/openSUSE/yomi.git</param> - <param name="changesrevision">a2c22bfa3d9f3db41f0cdcef42af731c981ea410</param></service></servicedata> \ No newline at end of file + <param name="changesrevision">fa52819b46b02afce44b47259238a49c382d5207</param></service></servicedata> \ No newline at end of file ++++++ yomi-0.0.1+git.1604593202.a2c22bf.obscpio -> yomi-0.0.1+git.1619170188.fa52819.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yomi-0.0.1+git.1604593202.a2c22bf/README.md new/yomi-0.0.1+git.1619170188.fa52819/README.md --- old/yomi-0.0.1+git.1604593202.a2c22bf/README.md 2020-11-05 17:20:02.000000000 +0100 +++ new/yomi-0.0.1+git.1619170188.fa52819/README.md 2021-04-23 11:29:48.000000000 +0200 @@ -1,5 +1,46 @@ # Yomi - Yet one more installer +Table of contents +================= +* [Yomi - Yet one more installer](#yomi---yet-one-more-installer) + * [What is Yomi](#what-is-yomi) + * [Overview](#overview) + * [Installing and configuring salt-master](#installing-and-configuring-salt-master) + * [Other ways to install salt-master](#other-ways-to-install-salt-master) + * [Looking for the pillar](#looking-for-the-pillar) + * [Enabling auto-sign](#enabling-auto-sign) + * [Salt API](#salt-api) + * [The Yomi formula](#the-yomi-formula) + * [Looking for the pillar in Yomi](#looking-for-the-pillar-in-yomi) + * [Enabling auto-sing in Yomi](#enabling-auto-sing-in-yomi) + * [Salt API in Yomi](#salt-api-in-yomi) + * [Real time monitoring in Yomi](#real-time-monitoring-in-yomi) + * [Booting a new machine](#booting-a-new-machine) + * [The ISO image](#the-iso-image) + * [PXE Boot](#pxe-boot) + * [Finding the master node](#finding-the-master-node) + * [Setting the minion ID](#setting-the-minion-id) + * [Adding user provided configuration](#adding-user-provided-configuration) + * [Container](#container) + * [Basic operations](#basic-operations) + * [Getting hardware information](#getting-hardware-information) + * [Configuring the pillar](#configuring-the-pillar) + * [Cleaning the disks](#cleaning-the-disks) + * [Applying the yomi state](#applying-the-yomi-state) + * [Pillar reference for Yomi](#pillar-reference-for-yomi) + * [config section](#config-section) + * [partitions section](#partitions-section) + * [lvm section](#lvm-section) + * [raid section](#raid-section) + * [filesystems section](#filesystems-section) + * [bootloader section](#bootloader-section) + * [software section](#software-section) + * [suseconnect section](#suseconnect-section) + * [salt-minion section](#salt-minion-section) + * [services section](#services-section) + * [networks section](#networks-section) + * [users section](#users-section) + # What is Yomi Yomi (yet one more installer) is a new proposal for an installer for @@ -336,6 +377,13 @@ wget https://download.opensuse.org/repositories/systemsmanagement:/yomi/images/iso/openSUSE-Tumbleweed-Yomi.x86_64-livecd.iso ``` +This image do not have root password, so if we have physical access to +the node we can become root locally. The `sshd` service is enabled +during boot time but for security reasons the user `root` cannot +access via SSH (`PermitEmptyPasswords` is not set). To gain remote +access to `root` we need to set the kernel command line parameter +`ym.sshd=1` (for example, via PXE Boot). + ## PXE Boot The second image available is a OEM ramdisk that can be booted from diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yomi-0.0.1+git.1604593202.a2c22bf/pillar/installer.sls new/yomi-0.0.1+git.1619170188.fa52819/pillar/installer.sls --- old/yomi-0.0.1+git.1604593202.a2c22bf/pillar/installer.sls 2020-11-05 17:20:02.000000000 +0100 +++ new/yomi-0.0.1+git.1619170188.fa52819/pillar/installer.sls 2021-04-23 11:29:48.000000000 +0200 @@ -34,7 +34,7 @@ config: events: no - reboot: yes + reboot: no {% if snapper and root_filesystem == 'btrfs' %} snapper: yes {% endif %} @@ -48,8 +48,8 @@ {% if mode == 'sles' %} suseconnect: config: - regcode: REGISTRATION-CODE - version: '15.1' + regcode: INTERNAL-USE-ONLY-f7fe-e9d9 + version: '15.2' arch: {{ arch }} products: - sle-module-basesystem @@ -65,7 +65,11 @@ repositories: {% if mode == 'sles' %} SUSE_SLE-15_GA: "http://download.suse.de/ibs/SUSE:/SLE-15:/GA/standard/" + SUSE_SLE-15_Update: "http://download.suse.de/ibs/SUSE:/SLE-15:/Update/standard/" SUSE_SLE-15-SP1_GA: "http://download.suse.de/ibs/SUSE:/SLE-15-SP1:/GA/standard/" + SUSE_SLE-15-SP1_Update: "http://download.suse.de/ibs/SUSE:/SLE-15-SP1:/Update/standard/" + SUSE_SLE-15-SP2_GA: "http://download.suse.de/ibs/SUSE:/SLE-15-SP2:/GA/standard/" + SUSE_SLE-15-SP2_Update: "http://download.suse.de/ibs/SUSE:/SLE-15-SP2:/Update/standard/" {% elif arch == 'aarch64' %} repo-oss: "http://download.opensuse.org/ports/aarch64/tumbleweed/repo/oss/" {% else %} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yomi-0.0.1+git.1604593202.a2c22bf/salt/_modules/devices.py new/yomi-0.0.1+git.1619170188.fa52819/salt/_modules/devices.py --- old/yomi-0.0.1+git.1604593202.a2c22bf/salt/_modules/devices.py 2020-11-05 17:20:02.000000000 +0100 +++ new/yomi-0.0.1+git.1619170188.fa52819/salt/_modules/devices.py 2021-04-23 11:29:48.000000000 +0200 @@ -154,7 +154,7 @@ .. code-block:: bash - salt '*' devices.wipeout /dev/sda + salt '*' devices.wipe /dev/sda """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/services/network.sls new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/services/network.sls --- old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/services/network.sls 2020-11-05 17:20:02.000000000 +0100 +++ new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/services/network.sls 2021-04-23 11:29:48.000000000 +0200 @@ -8,16 +8,10 @@ file.append: - name: /mnt/etc/sysconfig/network/ifcfg-{{ network.interface }} - text: | - BOOTPROTO='dhcp' - BROADCAST='' - ETHTOOL_OPTIONS='' - IPADDR='' - MTU='' NAME='' - NETMASK='' - NETWORK='' - REMOTE_IPADDR='' + BOOTPROTO='dhcp' STARTMODE='auto' + ZONE='' {% endfor %} {% else %} # This assume that the image used for deployment is under a @@ -33,16 +27,10 @@ file.append: - name: /mnt/etc/sysconfig/network/ifcfg-{{ interface }} - text: | - BOOTPROTO='dhcp' - BROADCAST='' - ETHTOOL_OPTIONS='' - IPADDR='' - MTU='' NAME='' - NETMASK='' - NETWORK='' - REMOTE_IPADDR='' + BOOTPROTO='dhcp' STARTMODE='auto' + ZONE='' - unless: "[ -e /mnt/usr/lib/udev/rules.d/75-persistent-net-generator.rules ]" {{ macros.log('file', 'create_ifcfg_eth' ~ loop.index0) }} @@ -50,16 +38,20 @@ file.append: - name: /mnt/etc/sysconfig/network/ifcfg-eth{{ loop.index0 }} - text: | - BOOTPROTO='dhcp' - BROADCAST='' - ETHTOOL_OPTIONS='' - IPADDR='' - MTU='' NAME='' - NETMASK='' - NETWORK='' - REMOTE_IPADDR='' + BOOTPROTO='dhcp' STARTMODE='auto' + ZONE='' + - onlyif: "[ -e /mnt/usr/lib/udev/rules.d/75-persistent-net-generator.rules ]" + +{{ macros.log('cmd', 'write_net_rules_eth' ~ loop.index0) }} +write_net_rules_eth{{ loop.index0 }}: + cmd.run: + - name: /usr/lib/udev/write_net_rules + - env: + - INTERFACE: eth{{ loop.index0 }} + - MATCHADDR: "{{ interfaces[interface].hwaddr }}" + - root: /mnt - onlyif: "[ -e /mnt/usr/lib/udev/rules.d/75-persistent-net-generator.rules ]" {% endfor %} {% endif %} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/software/init.sls new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/software/init.sls --- old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/software/init.sls 2020-11-05 17:20:02.000000000 +0100 +++ new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/software/init.sls 2021-04-23 11:29:48.000000000 +0200 @@ -7,6 +7,7 @@ - ..storage.fstab - ..storage.mount {% endif %} + - .repository - .software {% if pillar.get('suseconnect', {}).get('config', {}).get('regcode') %} - .suseconnect @@ -15,3 +16,4 @@ - ..bootloader.software - ..services.software - ..chroot.software + - .recreatedb diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/software/recreatedb.sls new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/software/recreatedb.sls --- old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/software/recreatedb.sls 1970-01-01 01:00:00.000000000 +0100 +++ new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/software/recreatedb.sls 2021-04-23 11:29:48.000000000 +0200 @@ -0,0 +1,20 @@ +{% import 'macros.yml' as macros %} + +{{ macros.log('cmd', 'rpm_exportdb') }} +rpm_exportdb: + cmd.run: + - name: rpmdb --root /mnt --exportdb > /mnt/tmp/exportdb + - creates: /mnt/tmp/exportdb + +{{ macros.log('file', 'clean_usr_lib_sysimage_rpm') }} +clean_usr_lib_sysimage_rpm: + file.absent: + - name: /mnt/usr/lib/sysimage/rpm + +{{ macros.log('cmd', 'rpm_importdb') }} +rpm_importdb: + cmd.run: + - name: rpmdb --importdb < /tmp/exportdb + - root: /mnt + - onchanges: + - cmd: rpm_exportdb diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/software/repository.sls new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/software/repository.sls --- old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/software/repository.sls 1970-01-01 01:00:00.000000000 +0100 +++ new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/software/repository.sls 2021-04-23 11:29:48.000000000 +0200 @@ -0,0 +1,65 @@ +{% import 'macros.yml' as macros %} + +{% set software = pillar['software'] %} +{% set software_config = software.get('config', {}) %} + +{% if software_config.get('transfer') %} +{{ macros.log('module', 'transfer_repositories') }} +migrate_repositories: + pkgrepo.migrated: + - name: /mnt + - keys: yes + + {% for cert_dir in ['/usr/share/pki/trust/anchors', '/usr/share/pki/trust/blacklist', + '/etc/pki/trust/anchors', '/etc/pki/trust/blacklist'] %} +migrate_{{ cert_dir }}: + module.run: + - file.copy: + - src: {{ cert_dir }} + - dst: /mnt{{ cert_dir }} + - recurse: yes + - remove_existing: yes + - unless: "[ -e /mnt{{ cert_dir }} ]" + {% endfor %} +{% endif %} + +# TODO: boo#1178910 - This zypper bug creates /var/lib/rpm and +# /usr/lib/sysimage/rpm independently, and not linked together +{{ macros.log('file', 'create_usr_lib_sysimage_rpm') }} +create_usr_lib_sysimage_rpm: + file.directory: + - name: /mnt/usr/lib/sysimage/rpm + - makedirs: yes + +{{ macros.log('file', 'symlink_var_lib_rpm') }} +symlink_var_lib_rpm: + file.symlink: + - name: /mnt/var/lib/rpm + - target: ../../usr/lib/sysimage/rpm + - makedirs: yes + +{% for alias, repository in software.get('repositories', {}).items() %} + {% if repository is mapping %} + {% set url = repository['url'] %} + {% else %} + {% set url = repository %} + {% set repository = {} %} + {% endif %} +{{ macros.log('pkgrepo', 'add_repository_' ~ alias) }} +add_repository_{{ alias }}: + pkgrepo.managed: + - baseurl: {{ url }} + - name: {{ alias }} + {% if repository.get('name') %} + - humanname: {{ repository.name }} + {% endif %} + - enabled: {{ repository.get('enabled', software_config.get('enabled', 'yes')) }} + - refresh: {{ repository.get('refresh', software_config.get('refresh', 'yes')) }} + - priority: {{ repository.get('priority', 0) }} + - gpgcheck: {{ repository.get('gpgcheck', software_config.get('gpgcheck', 'yes')) }} + - gpgautoimport: {{ repository.get('gpgautoimport', software_config.get('gpgautoimport', 'yes')) }} + - cache: {{ repository.get('cache', software_config.get('cache', 'no')) }} + - root: /mnt + - require: + - mount: mount_/mnt +{% endfor %} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/software/software.sls new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/software/software.sls --- old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/software/software.sls 2020-11-05 17:20:02.000000000 +0100 +++ new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/software/software.sls 2021-04-23 11:29:48.000000000 +0200 @@ -3,52 +3,6 @@ {% set software = pillar['software'] %} {% set software_config = software.get('config', {}) %} -{% if software_config.get('transfer') %} -{{ macros.log('module', 'transfer_repositories') }} -migrate_repositories: - pkgrepo.migrated: - - name: /mnt - - keys: yes - - {% for cert_dir in ['/usr/share/pki/trust/anchors', '/usr/share/pki/trust/blacklist', - '/etc/pki/trust/anchors', '/etc/pki/trust/blacklist'] %} -migrate_{{ cert_dir }}: - module.run: - - file.copy: - - src: {{ cert_dir }} - - dst: /mnt{{ cert_dir }} - - recurse: yes - - remove_existing: yes - - unless: "[ -e /mnt{{ cert_dir }} ]" - {% endfor %} -{% endif %} - -{% for alias, repository in software.get('repositories', {}).items() %} - {% if repository is mapping %} - {% set url = repository['url'] %} - {% else %} - {% set url = repository %} - {% set repository = {} %} - {% endif %} -{{ macros.log('pkgrepo', 'add_repository_' ~ alias) }} -add_repository_{{ alias }}: - pkgrepo.managed: - - baseurl: {{ url }} - - name: {{ alias }} - {% if repository.get('name') %} - - humanname: {{ repository.name }} - {% endif %} - - enabled: {{ repository.get('enabled', software_config.get('enabled', 'yes')) }} - - refresh: {{ repository.get('refresh', software_config.get('refresh', 'yes')) }} - - priority: {{ repository.get('priority', 0) }} - - gpgcheck: {{ repository.get('gpgcheck', software_config.get('gpgcheck', 'yes')) }} - - gpgautoimport: {{ repository.get('gpgautoimport', software_config.get('gpgautoimport', 'yes')) }} - - cache: {{ repository.get('cache', software_config.get('cache', 'no')) }} - - root: /mnt - - require: - - mount: mount_/mnt -{% endfor %} - {% if software_config.get('minimal') %} {{ macros.log('file', 'config_zypp_minimal_host') }} config_zypp_minimal_host: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/storage/btrfs/fstab.sls new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/storage/btrfs/fstab.sls --- old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/storage/btrfs/fstab.sls 2020-11-05 17:20:02.000000000 +0100 +++ new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/storage/btrfs/fstab.sls 2021-04-23 11:29:48.000000000 +0200 @@ -34,6 +34,7 @@ - fs_freq: 0 - fs_passno: 0 - mount_by: uuid + - mount: no - not_change: yes - config: /mnt/etc/fstab - require: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/storage/device/fstab.sls new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/storage/device/fstab.sls --- old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/storage/device/fstab.sls 2020-11-05 17:20:02.000000000 +0100 +++ new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/storage/device/fstab.sls 2021-04-23 11:29:48.000000000 +0200 @@ -28,6 +28,7 @@ {% if not salt.filters.is_lvm(device) %} - mount_by: uuid {% endif %} + - mount: no - not_change: yes - config: /mnt/etc/fstab - require: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/storage/snapper/fstab.sls new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/storage/snapper/fstab.sls --- old/yomi-0.0.1+git.1604593202.a2c22bf/salt/yomi/storage/snapper/fstab.sls 2020-11-05 17:20:02.000000000 +0100 +++ new/yomi-0.0.1+git.1619170188.fa52819/salt/yomi/storage/snapper/fstab.sls 2021-04-23 11:29:48.000000000 +0200 @@ -31,6 +31,7 @@ {% if not salt.filters.is_lvm(device) %} - mount_by: uuid {% endif %} + - mount: no - not_change: yes - config: /mnt/etc/fstab - require: ++++++ yomi.obsinfo ++++++ --- /var/tmp/diff_new_pack.VciUm9/_old 2021-05-02 18:35:19.773148888 +0200 +++ /var/tmp/diff_new_pack.VciUm9/_new 2021-05-02 18:35:19.773148888 +0200 @@ -1,5 +1,5 @@ name: yomi -version: 0.0.1+git.1604593202.a2c22bf -mtime: 1604593202 -commit: a2c22bfa3d9f3db41f0cdcef42af731c981ea410 +version: 0.0.1+git.1619170188.fa52819 +mtime: 1619170188 +commit: fa52819b46b02afce44b47259238a49c382d5207
