Skip to content
Snippets Groups Projects
Commit 1f7a3e29 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Merge branch 'master' of github.com:ananace/foreman_wds

parents 278bc1f8 5373b674
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,15 @@ ...@@ -2,6 +2,15 @@
This plugin adds extended support to Foreman for querying and orchestrating WDS servers. This plugin adds extended support to Foreman for querying and orchestrating WDS servers.
*Nota Bene*; to support locally booting your installation, you need to have a regular DHCP/TFTP setup in place, that can serve PXE files for the PXE loader chosen for the WDS host.
If you don't want the lifecycle management features of Foreman, you can ignore this requirement and only PXE boot the WDS host when it is to be built.
### Not yet implemented:
- Install image orchestration
- Unattend file deployment
- Recommended to build a http client (curl/wget/etc) into your boot image and download `https://foreman.example.com/unattend/wds_unattend` to drive the setup.
## Compatibility ## Compatibility
| Foreman Version | Plugin Version | | Foreman Version | Plugin Version |
...@@ -10,11 +19,10 @@ This plugin adds extended support to Foreman for querying and orchestrating WDS ...@@ -10,11 +19,10 @@ This plugin adds extended support to Foreman for querying and orchestrating WDS
## Installation ## Installation
See [Plugins install instructions](https://theforeman.org/plugins/) for information on how to install Foreman plugins. See the [Plugins install instructions, advanced installation from gems](https://theforeman.org/plugins/#2.3AdvancedInstallationfromGems) for information on how to install this plugins.
## Usage
TODO This plugin has JavaScript assets that require precompilation if installed into a packaged Foreman install.
You will need to install the `foreman-assets` package and run `foreman-rake plugin:assets:precompile[foreman_wds]` after installing it from gem.
## Contributing ## Contributing
......
...@@ -59,7 +59,9 @@ class WdsServer < ApplicationRecord ...@@ -59,7 +59,9 @@ class WdsServer < ApplicationRecord
end end
def client(host) def client(host)
clients.find { |c| [host.mac, host.name].include? c[:device_id] } clients.find do |c|
[host.mac.upcase.tr(':', '-'), host.name].include?(c[:device_id]) || [host.name, host.shortname].include?(c[:device_name])
end
end end
def boot_images def boot_images
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment