Hi guys,

I am wondering whether there is an easy way to create a valid kickstart tree 
for CentOS 6 installation on a Pulp server.
I have created a local repo in Pulp using this repository as a source:


$ pulp-admin rpm repo create --repo-id=centos7-os --relative-url=centos7-os 
--feed=http://centos.mirror.crucial.com.au/7.0.1406/os/x86_64/
 --serve-http=true
$ pulp-admin rpm repo sync run --repo-id=centos7-os


Now at my Pulp server public IP, accessible at https://<pulp server 
ip>/pulp/repos/centos7-os/ I can see the list of RPMs:


389-ds-base-1.3.1.6-25.el7.x86_64.rpm                      
389-ds-base-devel-1.3.1.6-25.el7.x86_64.
389-ds-base-libs-1.3.1.6-25.el7.x86_64.
Cython-0.19-3.el7.x86_64.rpm
...



Command


$ pulp-admin rpm repo content distribution  --repo-id centos7-os


shows me this:


Id:            ks-CentOS--7-x86_64
Family:        CentOS
Architecture:  x86_64
Variant:       
Storage Path:  /var/lib/pulp/content/distribution/ks-CentOS--7-x86_64


Files:
  Filename:       vmlinuz
  Relative Path:  images/pxeboot/vmlinuz
  Size:           None
  Checksum Type:  sha256
  Checksum:       871fab25198a4a1d51054ded0ad773868400e71fda6a6f713c218c33c14c03
                  d1


  Filename:       efiboot.img
…


The directory /var/lib/pulp/content/distribution/ks-CentOS--7-x86_64 on the 
Pulp server has the following structure:


/var/lib/pulp/content/distribution/ks-CentOS--7-x86_64
├── images
│   ├── boot.iso
│   ├── efiboot.img
│   └── pxeboot
│       ├── initrd.img
│       ├── upgrade.img
│       └── vmlinuz
└── LiveOS
    └── squashfs.img


If I understand it correctly, in order to create a network-accessible kickstart 
media I would need to manually create symlinks in a custom directory on the 
Pulp server to the `images`, `LiveOS` directories from above and `Packages` 
being a symlink to a Pulp content tree 
(/var/lib/pulp/published/yum/http/repos/centos7-os) - and then make this custom 
directory accessible via HTTP.
Also, I reckon I will need to generate the `repodata` as well?


Is there any way to make this process less tedious?


BTW, the Wiki page (https://fedorahosted.org/pulp/wiki/KickstartTrees) and this 
article - http://people.redhat.com/tscherf/articles/lm_en_pulp.pdf seems to be 
very outdated as there does not seem to be any ‘distribution’ command for 
`pulp-admin` utility.


Thank you!


With kind regards,
Roman
_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list

Reply via email to