Hello,
On our current environment, Foreman 1.17, Foreman_expire_hosts-5.1.0 we notice that the hosts are deleted one day before the mentioned deletion date.
One example:
Mail received:
The following hosts have been expired in Foreman and will be stopped for now. These hosts will be destroyed on 2018-06-08. Please change their expiry date (Edit host and Additional information tab) and power them on if you want to keep the hosts.
Hostname Host group Environment Expiration Date
sta-lc-bcm-02.example.com appdev/STA/ALL/RHEL-7/LC/BrandingContentManager appdev_lc 2018-04-26 (1 day ago)
Foreman audit:
07 Jun 07:45 Anonymous Admin destroyed Host: sta-lc-bcm-02.example.com
Expiry settings:
Name | Value | Description
-- | -- | --
Expiry e-mail recipients | XXX | All notifications will be delivered to its owner. If any other users/admins need to receive those expiry warning notifications then those emails can be configured comma separated here.
Require host expiry date | Yes | Make expiry date field mandatory on host creation/update
Second expiry notification | 1 | Send second notification to owner of hosts about his hosts expiring in given days. Must be integer only
Host owner can modify host expiry date | Yes | Allow host owner to modify host expiry date field. If the field is false then admin only can edit expiry field
First expiry notification | 7 | Send first notification to owner of hosts about his hosts expiring in given days. Must be integer only
Expiry grace period in days | 42 | Delete expired hosts after given days of hosts expiry date. Must be integer only
Hello, On our current environment, Foreman 1.17, Foreman_expire_hosts-5.1.0 we notice that the hosts are deleted one day before the mentioned deletion date.
One example: Mail received:
The following hosts have been expired in Foreman and will be stopped for now. These hosts will be destroyed on 2018-06-08. Please change their expiry date (Edit host and Additional information tab) and power them on if you want to keep the hosts.
Foreman audit:
07 Jun 07:45 Anonymous Admin destroyed Host: sta-lc-bcm-02.example.com
Expiry settings: