What is the geometric formula of CaI2 and AlCl3
$\ce{CaI2}$ is mostly ionic in the solid and aqueous phases.  In the gas phases it is a linear molecule.  See Ionic or covalent? Can some first hints be derived from the solid state
structures of alkaline earth metal halide adducts?

$\ce{AlCl3}$ has an octaheral structure in the solid phase.

In the liquid phase:  



Trigonal planar monomers also exist at high temperature.  

Source: http://en.wikipedia.org/wiki/Aluminium_chloride