diff --git a/playbooks/cleanup-deployment-images.yaml b/playbooks/cleanup-deployment-images.yaml new file mode 100644 index 000000000..e3ce2fac1 --- /dev/null +++ b/playbooks/cleanup-deployment-images.yaml @@ -0,0 +1,10 @@ +--- +- hosts: localhost + connection: local + name: "Removes the master_images folder and deployment kernel/ramdisk for clean redeployments when testing." + sudo: yes + gather_facts: yes + tasks: + - file: path=/tftpboot/master_images state=absent + - file: path="{{deploy_kernel}}" state=absent + - file: path="{{deploy_ramdisk}}" state=absent diff --git a/troubleshooting.rst b/troubleshooting.rst index e0b604285..47d81aea5 100644 --- a/troubleshooting.rst +++ b/troubleshooting.rst @@ -28,6 +28,13 @@ Example error: Unexpected/Unknown failure with the IPA Agent ********************************************* +New image appears not to be deploying +===================================== + +When deploying a new image with the same previous name, it is necessary to purge the contents of the TFTP master_images folder which caches the image file for deployments. The default location for this folder is /tftpboot/master_images. + +Additionally, a playbook has been included that can be used prior to a re-installation to ensure fresh images are deployed. This playbook can be found at playbooks/cleanup-deployment-images.yaml + Building an IPA image =====================