import qualified Ganeti.HTools.Node as Node
import qualified Ganeti.HTools.Instance as Instance
-import Ganeti.HTools.Utils
import Ganeti.HTools.Types
import Ganeti.HTools.CLI
import Ganeti.HTools.ExtLoader
import Ganeti.HTools.Loader
+import Ganeti.Utils
-- | Options list and functions.
options :: [OptType]
, oStdSpec
, oTieredSpec
, oSaveCluster
- , oShowVer
- , oShowHelp
]
-- | The allocation phase we're in (initial, after tiered allocs, or
-- | Create an instance from a given spec.
instFromSpec :: RSpec -> DiskTemplate -> Int -> Instance.Instance
-instFromSpec spx disk_template su =
+instFromSpec spx =
Instance.create "new" (rspecMem spx) (rspecDsk spx)
- (rspecCpu spx) Running [] True (-1) (-1) disk_template su
+ (rspecCpu spx) Running [] True (-1) (-1)
-- | Main function.
main :: Options -> [String] -> IO ()